changeset 1162:24a62b6412c4

Set additional request headers for POST RPCs
author Adam Chlipala <adamc@hcoop.net>
date Tue, 09 Feb 2010 17:00:31 -0500
parents 2ae57fa551be
children 6c507826fae9
files lib/js/urweb.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/js/urweb.js	Tue Feb 09 09:51:21 2010 -0500
+++ b/lib/js/urweb.js	Tue Feb 09 17:00:31 2010 -0500
@@ -669,6 +669,9 @@
     return;
 
   xhr.open("POST", uri, true);
+  xhr.setRequestHeader("Content-type", "text/plain");
+  xhr.setRequestHeader("Content-length", "0");
+  xhr.setRequestHeader("Connection", "close");
 
   if (client_id != null) {
     xhr.setRequestHeader("UrWeb-Client", client_id.toString());