summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs
diff options
context:
space:
mode:
authorDaniel W <danweller18@gmail.com>2017-07-22 12:11:14 -0400
committerDaniel W <danweller18@gmail.com>2017-07-22 12:11:14 -0400
commitadb620950303e1f14e8eaa4a4649e6a79e9ed879 (patch)
tree6a8832bf84f072010ed41e84e12e3204f480b72e /modules/luci-base/htdocs
parent2224714217105b1482dab63842409bb62154230d (diff)
remove request headers that are set automatically by browser
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/xhr.js2
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);
}