Task: Add payload support
This adds the payload values to task responses.
Tested: passed validator
Change-Id: I50467e28ce8142d198f916ea0c63bd413edcd524
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/http/http_request.h b/http/http_request.h
index ff09bf1..b440f44 100644
--- a/http/http_request.h
+++ b/http/http_request.h
@@ -15,6 +15,7 @@
struct Request
{
boost::beast::http::request<boost::beast::http::string_body>& req;
+ boost::beast::http::fields& fields;
std::string_view url{};
QueryString urlParams{};
bool isSecure{false};
@@ -31,7 +32,7 @@
Request(
boost::beast::http::request<boost::beast::http::string_body>& reqIn) :
req(reqIn),
- body(reqIn.body())
+ fields(reqIn.base()), body(reqIn.body())
{
}