Update http_examples.cpp

This commit is contained in:
Arash 2016-09-04 17:57:31 +10:00 committed by GitHub
commit dd41fb3265

View file

@ -60,8 +60,8 @@ int main() {
*response << "HTTP/1.1 200 OK" << "\r\n" *response << "HTTP/1.1 200 OK" << "\r\n"
<< "Access-Control-Allow-Origin: *" << "\r\n" << "Access-Control-Allow-Origin: *" << "\r\n"
<< "Content-Type: application/json" << "\r\n" << "Content-Type: application/json" << "\r\n"
<<"Content-Length: " << name.length() << "\r\n" << "Content-Length: " << name.length() << "\r\n"
<<"\r\n" << "\r\n"
<< name; << name;
} }
catch(exception& e) { catch(exception& e) {