diff options
author | Jo-Philipp Wich <jo@mein.io> | 2017-08-02 10:34:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-02 10:34:59 +0200 |
commit | bf407f087cde592631bd0c95948e32cbd0efab08 (patch) | |
tree | 8de4175ec7725849e1c0824def867801c449f999 | |
parent | 317cfd0b4be78a68c0fb6695803feb32c2768d5d (diff) | |
parent | adb620950303e1f14e8eaa4a4649e6a79e9ed879 (diff) |
Merge pull request #1245 from danweller18/feature_js_headers
luci-base: Remove request headers that are set automatically by browser
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/xhr.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/xhr.js b/modules/luci-base/htdocs/luci-static/resources/xhr.js index 701c12ac1..3385f8f23 100644 --- a/modules/luci-base/htdocs/luci-static/resources/xhr.js +++ b/modules/luci-base/htdocs/luci-static/resources/xhr.js @@ -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); } |