Avoids the implicit lock of #630

This commit is contained in:
DennisOSRM 2013-05-22 12:06:53 +02:00
parent f057054172
commit aa42b2494c

View File

@ -143,8 +143,10 @@ Reply Reply::stockReply(Reply::status_type status) {
rep.headers[0].name = "Access-Control-Allow-Origin"; rep.headers[0].name = "Access-Control-Allow-Origin";
rep.headers[0].value = "*"; rep.headers[0].value = "*";
rep.headers[1].name = "Content-Length"; rep.headers[1].name = "Content-Length";
std::string s; std::string s;
intToString(rep.content.size(), s); intToString(rep.content.size(), s);
rep.headers[1].value = s; rep.headers[1].value = s;
rep.headers[2].name = "Content-Type"; rep.headers[2].name = "Content-Type";
rep.headers[2].value = "text/html"; rep.headers[2].value = "text/html";