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:
		@@ -447,7 +447,6 @@ function handleConnection(client) {
 | 
			
		||||
	resetTimeout(++requestCount);
 | 
			
		||||
 | 
			
		||||
	function reset() {
 | 
			
		||||
		inputBuffer = new Uint8Array(0);
 | 
			
		||||
		request = undefined;
 | 
			
		||||
		headers = {};
 | 
			
		||||
		parsing_header = true;
 | 
			
		||||
@@ -546,6 +545,7 @@ function handleConnection(client) {
 | 
			
		||||
					inputBuffer = inputBuffer.slice(length);
 | 
			
		||||
				} else {
 | 
			
		||||
					body.set(inputBuffer, offset);
 | 
			
		||||
					inputBuffer = inputBuffer.slice(inputBuffer.length);
 | 
			
		||||
				}
 | 
			
		||||
				bodyToRead -= length;
 | 
			
		||||
				if (bodyToRead <= 0) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user