Browse Source

nicer

pull/1/head
Volker Birk 2 years ago
parent
commit
3b029f505c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test_webserver.cc

+ 1
- 1
test_webserver.cc View File

@ -11,7 +11,7 @@ int main()
std::cout << "adding handler for http://127.0.0.1:8080/handler/sample\n";
web.add_url_handler("/handler/(?<name>\\w+)",
[](boost::cmatch m, pEp::Webserver::request& req)->pEp::Webserver::response* {
pEp::Webserver::response *res = new pEp::Webserver::response;
pEp::Webserver::response *res = new pEp::Webserver::response{http::status::ok, req.version()};
// https://www.boost.org/doc/libs/1_73_0/libs/beast/doc/html/beast/ref/boost__beast__http__response.html


Loading…
Cancel
Save