From dd41fb3265f3a6f12e87bda6603d27ed2ca9488e Mon Sep 17 00:00:00 2001 From: Arash Date: Sun, 4 Sep 2016 17:57:31 +1000 Subject: [PATCH] Update http_examples.cpp --- http_examples.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http_examples.cpp b/http_examples.cpp index a1a2a90..27ff275 100644 --- a/http_examples.cpp +++ b/http_examples.cpp @@ -60,8 +60,8 @@ int main() { *response << "HTTP/1.1 200 OK" << "\r\n" << "Access-Control-Allow-Origin: *" << "\r\n" << "Content-Type: application/json" << "\r\n" - <<"Content-Length: " << name.length() << "\r\n" - <<"\r\n" + << "Content-Length: " << name.length() << "\r\n" + << "\r\n" << name; } catch(exception& e) {