mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Fix speedtestc by changing user agent
This commit is contained in:
		
							parent
							
								
									71d0fc3cab
								
							
						
					
					
						commit
						d078008fe3
					
				
					 2 changed files with 23 additions and 1 deletions
				
			
		
							
								
								
									
										22
									
								
								speedtestc/patches/user-agent.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								speedtestc/patches/user-agent.patch
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,22 @@ | |||
| diff --git a/src/http.c b/src/http.c
 | ||||
| index 45d7281..99f9cfd 100644
 | ||||
| --- a/src/http.c
 | ||||
| +++ b/src/http.c
 | ||||
| @@ -88,7 +88,7 @@ sock_t httpPut(char* pAddress, int pPort, char* pRequest, unsigned long contentS
 | ||||
|  	 Leaving it uninitialized gives us random high value.*/ | ||||
|  	sprintf(buffer, "POST %s HTTP/1.1\r\n" | ||||
|  			"Host: %s\r\n" | ||||
| -			"User-Agent: SPEEDTEST_CLIENT\r\n"
 | ||||
| +			"User-Agent: OMR_SPEEDTEST_CLIENT\r\n"
 | ||||
|  			"Content-Type: application/x-www-form-urlencoded\r\n" | ||||
|  			"Connection: keep-alive\r\n" | ||||
|  			"Content-Length: %lu\r\n" | ||||
| @@ -131,7 +131,7 @@ sock_t httpGet(char* pAddress, int pPort, char* pRequest, int ssl)
 | ||||
|   | ||||
|  	sprintf(buffer, "GET %s HTTP/1.1\r\n" | ||||
|  			"Host: %s\r\n" | ||||
| -			"User-Agent: SPEEDTEST_CLIENT\r\n"
 | ||||
| +			"User-Agent: OMR_SPEEDTEST_CLIENT\r\n"
 | ||||
|  			"Connection: close\r\n" | ||||
|  			"\r\n", pRequest, pAddress); | ||||
|   | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue