From adb620950303e1f14e8eaa4a4649e6a79e9ed879 Mon Sep 17 00:00:00 2001 From: Daniel W Date: Sat, 22 Jul 2017 12:11:14 -0400 Subject: remove request headers that are set automatically by browser --- modules/luci-base/htdocs/luci-static/resources/xhr.js | 2 -- 1 file changed, 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); } -- cgit v1.2.3