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 701c12a..3385f8f 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);
        }