diff options
author | Ed Tanous <edtanous@google.com> | 2021-05-12 00:50:58 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2021-05-12 22:51:16 +0300 |
commit | 8a9a25c821f40b9cd2d94a483581c435e4e4a27e (patch) | |
tree | a568a8b7a700a6eeba1514588f0a122368ea1e96 /http/http_request.hpp | |
parent | ad0006e4500f349beb425a7d5b21feac685bdb9f (diff) | |
download | bmcweb-8a9a25c821f40b9cd2d94a483581c435e4e4a27e.tar.xz |
Include what you use in http request and response
https://jenkins.openbmc.org/job/ci-openbmc/3949/distro=ubuntu,label=docker-builder,target=tiogapass/consoleText
This build seems to be failing with an error |
../git/http/http_response.hpp:23:10: error: 'optional' in namespace
'std' does not name a template type | 23 |
std::optional<response_type> stringResponse;
This should fix it by including the relevant headers.
Tested:
Code builds. CI error only.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Ifba15559a73d823d791de1d508e136a3c44e6cd1
Diffstat (limited to 'http/http_request.hpp')
-rw-r--r-- | http/http_request.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/http/http_request.hpp b/http/http_request.hpp index 8bcce064db..44ed2e30f5 100644 --- a/http/http_request.hpp +++ b/http/http_request.hpp @@ -10,6 +10,9 @@ #include <boost/beast/websocket.hpp> #include <boost/url/url_view.hpp> +#include <string> +#include <string_view> + namespace crow { |