projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2224714
)
remove request headers that are set automatically by browser
author
Daniel W
<
[email protected]
>
Sat, 22 Jul 2017 16:11:14 +0000
(12:11 -0400)
committer
Daniel W
<
[email protected]
>
Sat, 22 Jul 2017 16:11:14 +0000
(12:11 -0400)
modules/luci-base/htdocs/luci-static/resources/xhr.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/xhr.js
b/modules/luci-base/htdocs/luci-static/resources/xhr.js
index 701c12ac196aaf50eb84bd8e1a004f7515387e78..3385f8f230ae5c1cb7edaeac17557cf054f5dbdf 100644
(file)
--- 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);
}