mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	fix 500 response in http proxy
This commit is contained in:
		
							parent
							
								
									ae6877ce2f
								
							
						
					
					
						commit
						e795de5562
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -93,7 +93,7 @@ namespace proxy
 | 
			
		|||
	//TODO: handle this apropriately
 | 
			
		||||
	void HTTPProxyHandler::HTTPRequestFailed(/*HTTPProxyHandler::errTypes error*/)
 | 
			
		||||
	{
 | 
			
		||||
		static std::string response = "HTTP/1.0 500 Internal Server Error\r\nContent-type: text/html\r\nContent-length: 0\r\n";
 | 
			
		||||
		static std::string response = "HTTP/1.0 500 Internal Server Error\r\nContent-type: text/html\r\nContent-length: 0\r\n\r\n";
 | 
			
		||||
		boost::asio::async_write(*m_sock, boost::asio::buffer(response,response.size()),
 | 
			
		||||
					 std::bind(&HTTPProxyHandler::SentHTTPFailed, shared_from_this(), std::placeholders::_1));
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue