Browse Source

response is no longer a pointer.

pull/1/head
roker 2 years ago
parent
commit
1b425c63a8
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      test_webserver.cc

+ 4
- 4
test_webserver.cc View File

@ -15,10 +15,10 @@ int main()
// https://www.boost.org/doc/libs/1_73_0/libs/beast/doc/html/beast/ref/boost__beast__http__response.html
res->set(pEp::http::field::content_type, "text/json; charset=utf-8");
res->keep_alive(req.keep_alive());
res.set(pEp::http::field::content_type, "text/json; charset=utf-8");
res.keep_alive(req.keep_alive());
res->body() =
res.body() =
"{"
"\"Herausgeber\": \"Xema\","
"\"Nummer\": \"1234-5678-9012-3456\","
@ -36,7 +36,7 @@ int main()
"}"
"}";
res->prepare_payload();
res.prepare_payload();
return res;
}
);


Loading…
Cancel
Save