diff options
| author | Per Larsson <[email protected]> | 2022-01-22 11:11:34 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-01-22 11:11:34 +0100 |
| commit | aef9c292beae2245da35f60fa8c8bd9c52fd248f (patch) | |
| tree | 798c254a0a3c867b5bc79c676684de7d47de6cc9 /zenhttp | |
| parent | Use ExtendablePathBuilders (diff) | |
| download | zen-aef9c292beae2245da35f60fa8c8bd9c52fd248f.tar.xz zen-aef9c292beae2245da35f60fa8c8bd9c52fd248f.zip | |
Format fix.
Diffstat (limited to 'zenhttp')
| -rw-r--r-- | zenhttp/httpasio.cpp | 6 | ||||
| -rw-r--r-- | zenhttp/httpserver.cpp | 2 | ||||
| -rw-r--r-- | zenhttp/httpsys.cpp | 3 |
3 files changed, 4 insertions, 7 deletions
diff --git a/zenhttp/httpasio.cpp b/zenhttp/httpasio.cpp index 7a6efd884..801bb51ac 100644 --- a/zenhttp/httpasio.cpp +++ b/zenhttp/httpasio.cpp @@ -155,11 +155,7 @@ private: { HeaderEntry() = default; - HeaderEntry(std::string_view InName, std::string_view InValue) - : Name(InName) - , Value(InValue) - { - } + HeaderEntry(std::string_view InName, std::string_view InValue) : Name(InName), Value(InValue) {} std::string_view Name; std::string_view Value; diff --git a/zenhttp/httpserver.cpp b/zenhttp/httpserver.cpp index 62b8d11a1..c8e11468e 100644 --- a/zenhttp/httpserver.cpp +++ b/zenhttp/httpserver.cpp @@ -400,7 +400,7 @@ HttpServerRequest::GetQueryParams() continue; } - size_t QueryLen = ptrdiff_t(QueryEnd - QueryIt); + size_t QueryLen = ptrdiff_t(QueryEnd - QueryIt); const std::string_view Query{QueryIt, QueryLen}; size_t DelimIndex = Query.find('&', 0); diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index 67ff6b46b..b3d109b6a 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -703,7 +703,8 @@ HttpAsyncWorkRequest::AsyncWorkItem::Execute() } catch (std::exception& Ex) { - return (void)Tx.IssueNextRequest(new HttpMessageResponseRequest(Tx, 500, fmt::format("Exception thrown in async work: '{}'", Ex.what()))); + return (void)Tx.IssueNextRequest( + new HttpMessageResponseRequest(Tx, 500, fmt::format("Exception thrown in async work: '{}'", Ex.what()))); } } |