remove request headers that are set automatically by browser 1245/head
authorDaniel W <danweller18@gmail.com>
Sat, 22 Jul 2017 16:11:14 +0000 (12:11 -0400)
committerDaniel W <danweller18@gmail.com>
Sat, 22 Jul 2017 16:11:14 +0000 (12:11 -0400)
modules/luci-base/htdocs/luci-static/resources/xhr.js

index 701c12ac196aaf50eb84bd8e1a004f7515387e78..3385f8f230ae5c1cb7edaeac17557cf054f5dbdf 100644 (file)
@@ -91,8 +91,6 @@ XHR = function()
 
                xhr.open('POST', url, true);
                xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
-               xhr.setRequestHeader('Content-length', code.length);
-               xhr.setRequestHeader('Connection', 'close');
                xhr.send(code);
        }