diff options
Diffstat (limited to 'server/src/http_server.cpp')
| -rw-r--r-- | server/src/http_server.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/src/http_server.cpp b/server/src/http_server.cpp index c3a9ed7..ff96091 100644 --- a/server/src/http_server.cpp +++ b/server/src/http_server.cpp | |||
| @@ -79,8 +79,7 @@ auto global_options_handler(base_ctx const& ctx, readable_request r) | |||
| 79 | { | 79 | { |
| 80 | // TODO: switch to "small (4KB) discarded" body type, similar to what Go | 80 | // TODO: switch to "small (4KB) discarded" body type, similar to what Go |
| 81 | // does? Same goes for default_options_handler? Not sure. | 81 | // does? Same goes for default_options_handler? Not sure. |
| 82 | if (auto res = co_await read_request<bhttp::empty_body>(ctx, std::move(r)); | 82 | if (auto res = co_await read_empty_request(ctx, std::move(r)); !res) |
| 83 | !res) | ||
| 84 | co_return std::move(res.error()); | 83 | co_return std::move(res.error()); |
| 85 | auto req = r.p->release(); | 84 | auto req = r.p->release(); |
| 86 | auto rsp = make_rsp<bhttp::empty_body>( | 85 | auto rsp = make_rsp<bhttp::empty_body>( |