Update http_examples.cpp
This commit is contained in:
parent
c8bbf7e789
commit
1de7c6b1db
1 changed files with 3 additions and 3 deletions
|
|
@ -57,9 +57,9 @@ int main() {
|
|||
|
||||
string name=pt.get<string>("firstName")+" "+pt.get<string>("lastName");
|
||||
|
||||
*response << "HTTP/1.1 200 OK\r\nContent-Length: " << name.length() << "\r\n"
|
||||
<< "Access-Control-Allow-Origin: *" << "\r\n"
|
||||
<< "Content-Type: application/json" << "\r\n\r\n"
|
||||
*response << "Access-Control-Allow-Origin: *" << "\r\n"
|
||||
<< "Content-Type: application/json" << "\r\n"
|
||||
<< "HTTP/1.1 200 OK\r\nContent-Length: " << name.length() << "\r\n\r\n"
|
||||
<< name;
|
||||
}
|
||||
catch(exception& e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue