From a1274c371f2b977576433695bb042bcbdb4e7df4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 5 Aug 2020 16:55:55 +0200 Subject: [PATCH] adapt to current cgilite lib --- therapies/autosave.js | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2