]> git.plutz.net Git - lobster/commitdiff
adapt to current cgilite lib
authorPaul Hänsch <paul@plutz.net>
Wed, 5 Aug 2020 14:55:55 +0000 (16:55 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 5 Aug 2020 14:55:55 +0000 (16:55 +0200)
therapies/autosave.js

index bf6727492bcd649ec198d1bbdd9c9656814d31c7..b4020ddce94ca1a4db7cfbcccfb81af67ea3849e 100644 (file)
@@ -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;