diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-10-23 01:44:37 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-10-23 01:44:37 +0200 |
commit | ca7ca2218e07a24075cdc9d48e967cfdc2a3543b (patch) | |
tree | 69d0c5d6c0d064770a04b07faf005bc4fbbe7757 /src/RequestResponse.cpp | |
parent | 09f45879c2b2e63689265924cb700dee5f02f653 (diff) |
Improved Blog/Markdown URI base path handling.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/RequestResponse.cpp')
-rw-r--r-- | src/RequestResponse.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/RequestResponse.cpp b/src/RequestResponse.cpp index 535de78..59303a8 100644 --- a/src/RequestResponse.cpp +++ b/src/RequestResponse.cpp @@ -28,11 +28,8 @@ bool RequestResponse::UseUri() return false; } char const * const query = evhttp_uri_get_query(uri); - if (query == nullptr) - { - return false; - } - return evhttp_parse_query_str(query, &m_Query) == 0; + evhttp_parse_query_str(query, &m_Query); + return true; } bool RequestResponse::AddOutputHeaderByRef(std::string const & key, std::string const & value) |