diff --git a/shellinabox/shell_in_a_box.jspp b/shellinabox/shell_in_a_box.jspp index 8fa2132..de7e5be 100644 --- a/shellinabox/shell_in_a_box.jspp +++ b/shellinabox/shell_in_a_box.jspp @@ -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 {