Merge pull request #1245 from danweller18/feature_js_headers

luci-base: Remove request headers that are set automatically by browser
This commit is contained in:
Jo-Philipp Wich 2017-08-02 10:34:59 +02:00 committed by GitHub
commit bf407f087c

View 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);
}