Mercurial > urweb
diff lib/js/urweb.js @ 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 | e1d738870086 |
children | 26fed2c4f5be |
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());