No longer set HTTP Content-Length

This commit is contained in:
Ezra Buehler 2013-12-17 13:01:54 +01:00 committed by KLuka
parent 33813cd46d
commit 821ee789c4

View file

@ -172,7 +172,6 @@ ShellInABox.prototype.sendRequest = function(request) {
(this.session ? '&session=' +
encodeURIComponent(this.session) : '&rooturl='+
encodeURIComponent(this.rooturl));
request.setRequestHeader('Content-Length', content.length);
request.onreadystatechange = function(shellInABox) {
return function() {
@ -230,7 +229,6 @@ ShellInABox.prototype.sendKeys = function(keys) {
'&height=' + this.terminalHeight +
'&session=' +encodeURIComponent(this.session)+
'&keys=' + encodeURIComponent(keys);
request.setRequestHeader('Content-Length', content.length);
request.onreadystatechange = function(shellInABox) {
return function() {
try {