diff options
author | Daniel W <danweller18@gmail.com> | 2017-07-22 12:11:14 -0400 |
---|---|---|
committer | Daniel W <danweller18@gmail.com> | 2017-07-22 12:11:14 -0400 |
commit | adb620950303e1f14e8eaa4a4649e6a79e9ed879 (patch) | |
tree | 6a8832bf84f072010ed41e84e12e3204f480b72e /modules | |
parent | 2224714217105b1482dab63842409bb62154230d (diff) |
remove request headers that are set automatically by browser
Diffstat (limited to 'modules')
-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 701c12ac19..3385f8f230 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); } |