From: Paul Hänsch Date: Wed, 5 Aug 2020 14:55:55 +0000 (+0200) Subject: adapt to current cgilite lib X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=a1274c371f2b977576433695bb042bcbdb4e7df4;p=lobster adapt to current cgilite lib --- diff --git a/therapies/autosave.js b/therapies/autosave.js index bf67274..b4020dd 100644 --- a/therapies/autosave.js +++ b/therapies/autosave.js @@ -28,6 +28,7 @@ function formencode(fd){ function formsend(){ var request = new XMLHttpRequest(); request.open('post', '/therapies/update_therapy.sh'); + request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); request.timeout = 5000; request.onload = postsubmit; request.ontimeout = failsubmit;