Update http_examples.cpp
This commit is contained in:
parent
99114fd065
commit
dd41fb3265
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue