summaryrefslogtreecommitdiff
path: root/lib/js/urweb.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/js/urweb.js')
-rw-r--r--lib/js/urweb.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index a5713bf0..13e80e30 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -669,6 +669,9 @@ function requestUri(xhr, uri, needsSig) {
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());