From 2738169a9d5c644c9cc63449ffdd55da5ca1fb68 Mon Sep 17 00:00:00 2001 From: Mikhail Titov Date: Mon, 15 Jun 2015 16:57:02 -0500 Subject: [PATCH] Use static for now while returning HTTP 500 error --- HTTPProxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTTPProxy.cpp b/HTTPProxy.cpp index a575cc41..8e0ef9ad 100644 --- a/HTTPProxy.cpp +++ b/HTTPProxy.cpp @@ -90,7 +90,7 @@ namespace proxy //TODO: handle this apropriately void HTTPProxyHandler::HTTPRequestFailed(/*HTTPProxyHandler::errTypes error*/) { - 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"; boost::asio::async_write(*m_sock, boost::asio::buffer(response,response.size()), std::bind(&HTTPProxyHandler::SentHTTPFailed, shared_from_this(), std::placeholders::_1)); }