diff lib/js/urweb.js @ 1812:ea5f920ffa35

Removed setting of ignored XMLHttpRequest headers.
author Vladimir Shabanov <vshabanoff@gmail.com>
date Thu, 30 Aug 2012 17:04:30 +0400
parents 9913c81bdbef
children 4c61bb7acb9b
line wrap: on
line diff
--- a/lib/js/urweb.js	Thu Aug 30 17:00:18 2012 +0400
+++ b/lib/js/urweb.js	Thu Aug 30 17:04:30 2012 +0400
@@ -1332,10 +1332,6 @@
 
     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());