comparison 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
comparison
equal deleted inserted replaced
1811:9913c81bdbef 1812:ea5f920ffa35
1330 uri = uri.substring(0, 2000); 1330 uri = uri.substring(0, 2000);
1331 } 1331 }
1332 1332
1333 xhr.open("POST", uri, !unloading); 1333 xhr.open("POST", uri, !unloading);
1334 xhr.setRequestHeader("Content-type", "text/plain"); 1334 xhr.setRequestHeader("Content-type", "text/plain");
1335 try {
1336 xhr.setRequestHeader("Content-length", "0");
1337 xhr.setRequestHeader("Connection", "close");
1338 } catch (e) { }
1339 1335
1340 if (client_id != null) { 1336 if (client_id != null) {
1341 xhr.setRequestHeader("UrWeb-Client", client_id.toString()); 1337 xhr.setRequestHeader("UrWeb-Client", client_id.toString());
1342 xhr.setRequestHeader("UrWeb-Pass", client_pass.toString()); 1338 xhr.setRequestHeader("UrWeb-Pass", client_pass.toString());
1343 } 1339 }