From b46835592757b3a597ae99d6dec0ccdb2f94f516 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Tue, 9 Feb 2010 17:00:31 -0500 Subject: Set additional request headers for POST RPCs --- lib/js/urweb.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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()); -- cgit v1.2.3