summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http_connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/http_connection.cpp b/http_connection.cpp
index 6e970b2..ff7e795 100644
--- a/http_connection.cpp
+++ b/http_connection.cpp
@@ -91,11 +91,11 @@ void HTTP::Connection::write_headers() {
}
headers_written = true;
- boost::asio::write(socket, boost::asio::buffer("HTTP/1.1 200 OK\r\n"));
+ boost::asio::write(socket, boost::asio::buffer(std::string("HTTP/1.1 200 OK\r\n")));
for(HeaderList::iterator it = response_headers.begin(); it != response_headers.end(); it++) {
boost::asio::write(socket, boost::asio::buffer(boost::str(boost::format("%s: %s\r\n") % it->first % it->second)));
}
- boost::asio::write(socket, boost::asio::buffer("\r\n"));
+ boost::asio::write(socket, boost::asio::buffer(std::string("\r\n")));
}