tests:webclient: allow HTTP/1.0 requests with methods other than GET
Michael
This commit is contained in:
		
							parent
							
								
									039537cbe7
								
							
						
					
					
						commit
						79e994dd97
					
				@ -64,9 +64,6 @@ sub build_request($$$$$)
 | 
			
		||||
		}
 | 
			
		||||
		$request = "$method $document$EOL";
 | 
			
		||||
	} elsif ($version eq '1.0') {
 | 
			
		||||
		if ($method ne 'GET') {
 | 
			
		||||
			die "invalid method '$method'";
 | 
			
		||||
		}
 | 
			
		||||
		$request = "$method $document HTTP/$version$EOL"
 | 
			
		||||
			 . $user_agent_header;
 | 
			
		||||
	} elsif ($version eq '1.1') {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user