From aa42b2494cb540b4918f1095f04edbc24cfbd772 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Wed, 22 May 2013 12:06:53 +0200 Subject: [PATCH] Avoids the implicit lock of #630 --- Server/BasicDatastructures.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Server/BasicDatastructures.h b/Server/BasicDatastructures.h index a97030038..366abaece 100644 --- a/Server/BasicDatastructures.h +++ b/Server/BasicDatastructures.h @@ -143,8 +143,10 @@ Reply Reply::stockReply(Reply::status_type status) { rep.headers[0].name = "Access-Control-Allow-Origin"; rep.headers[0].value = "*"; rep.headers[1].name = "Content-Length"; + std::string s; intToString(rep.content.size(), s); + rep.headers[1].value = s; rep.headers[2].name = "Content-Type"; rep.headers[2].value = "text/html";