forked from cory/tildefriends
Fix HTTP request breakage.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4097 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
120ed36552
commit
7cba1b21ad
@ -447,7 +447,6 @@ function handleConnection(client) {
|
|||||||
resetTimeout(++requestCount);
|
resetTimeout(++requestCount);
|
||||||
|
|
||||||
function reset() {
|
function reset() {
|
||||||
inputBuffer = new Uint8Array(0);
|
|
||||||
request = undefined;
|
request = undefined;
|
||||||
headers = {};
|
headers = {};
|
||||||
parsing_header = true;
|
parsing_header = true;
|
||||||
@ -546,6 +545,7 @@ function handleConnection(client) {
|
|||||||
inputBuffer = inputBuffer.slice(length);
|
inputBuffer = inputBuffer.slice(length);
|
||||||
} else {
|
} else {
|
||||||
body.set(inputBuffer, offset);
|
body.set(inputBuffer, offset);
|
||||||
|
inputBuffer = inputBuffer.slice(inputBuffer.length);
|
||||||
}
|
}
|
||||||
bodyToRead -= length;
|
bodyToRead -= length;
|
||||||
if (bodyToRead <= 0) {
|
if (bodyToRead <= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user