diff options
| author | Ed Tanous <edtanous@google.com> | 2022-02-04 03:29:50 +0300 |
|---|---|---|
| committer | Ed Tanous <edtanous@google.com> | 2022-02-04 20:29:51 +0300 |
| commit | 50b8a43af501412f93a93ccce34a9ea7abb6d57f (patch) | |
| tree | d89ef940061fd533c9bf3a16b0b09bd6afbd8813 /http | |
| parent | c419c759177f7d42af4848bc9d16bca3c1644387 (diff) | |
| download | bmcweb-50b8a43af501412f93a93ccce34a9ea7abb6d57f.tar.xz | |
Remove NEW_BOOST_URL macro
Now that the subtree update is done, this define is no longer needed.
Tested: Code compiles. Noop.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Idc5d7ef69c009982a2476fadc1d95e3280bfff48
Diffstat (limited to 'http')
| -rw-r--r-- | http/http_request.hpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/http/http_request.hpp b/http/http_request.hpp index 32223c32c1..e0cb9dc3ed 100644 --- a/http/http_request.hpp +++ b/http/http_request.hpp @@ -23,9 +23,7 @@ struct Request boost::beast::http::fields& fields; std::string_view url{}; boost::urls::url_view urlView{}; -#ifndef NEW_BOOST_URL - boost::urls::query_params_view urlParams{}; -#endif + bool isSecure{false}; const std::string& body; @@ -100,7 +98,6 @@ struct Request } private: -#ifdef NEW_BOOST_URL bool setUrlInfo() { auto result = boost::urls::parse_relative_ref( @@ -115,22 +112,6 @@ struct Request urlView.encoded_path().size()); return true; } -#else - bool setUrlInfo() - { - boost::urls::error_code ec; - urlView = boost::urls::parse_relative_ref( - boost::urls::string_view(target().data(), target().size()), ec); - if (ec) - { - return false; - } - url = std::string_view(urlView.encoded_path().data(), - urlView.encoded_path().size()); - urlParams = urlView.query_params(); - return true; - } -#endif }; } // namespace crow |
