From cdff87c707fb473c48a89b9709b81a34679b0ab4 Mon Sep 17 00:00:00 2001 From: Vladimir Shabanov Date: Thu, 30 Aug 2012 17:04:30 +0400 Subject: Removed setting of ignored XMLHttpRequest headers. --- lib/js/urweb.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib') diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 4645df51..6e67cde7 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -1332,10 +1332,6 @@ function requestUri(xhr, uri, needsSig, isRpc) { xhr.open("POST", uri, !unloading); xhr.setRequestHeader("Content-type", "text/plain"); - try { - xhr.setRequestHeader("Content-length", "0"); - xhr.setRequestHeader("Connection", "close"); - } catch (e) { } if (client_id != null) { xhr.setRequestHeader("UrWeb-Client", client_id.toString()); -- cgit v1.2.3