Browse Source

Merge pull request #513 from majestrate/fix_http_proxy_500

fix 500 response in http proxy
pull/515/head
orignal 9 years ago committed by GitHub
parent
commit
68482d712b
  1. 2
      HTTPProxy.cpp

2
HTTPProxy.cpp

@ -93,7 +93,7 @@ namespace proxy @@ -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…
Cancel
Save