No longer set HTTP Content-Length
This commit is contained in:
parent
33813cd46d
commit
821ee789c4
1 changed files with 0 additions and 2 deletions
|
@ -172,7 +172,6 @@ ShellInABox.prototype.sendRequest = function(request) {
|
||||||
(this.session ? '&session=' +
|
(this.session ? '&session=' +
|
||||||
encodeURIComponent(this.session) : '&rooturl='+
|
encodeURIComponent(this.session) : '&rooturl='+
|
||||||
encodeURIComponent(this.rooturl));
|
encodeURIComponent(this.rooturl));
|
||||||
request.setRequestHeader('Content-Length', content.length);
|
|
||||||
|
|
||||||
request.onreadystatechange = function(shellInABox) {
|
request.onreadystatechange = function(shellInABox) {
|
||||||
return function() {
|
return function() {
|
||||||
|
@ -230,7 +229,6 @@ ShellInABox.prototype.sendKeys = function(keys) {
|
||||||
'&height=' + this.terminalHeight +
|
'&height=' + this.terminalHeight +
|
||||||
'&session=' +encodeURIComponent(this.session)+
|
'&session=' +encodeURIComponent(this.session)+
|
||||||
'&keys=' + encodeURIComponent(keys);
|
'&keys=' + encodeURIComponent(keys);
|
||||||
request.setRequestHeader('Content-Length', content.length);
|
|
||||||
request.onreadystatechange = function(shellInABox) {
|
request.onreadystatechange = function(shellInABox) {
|
||||||
return function() {
|
return function() {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue