Closed bethebest0622 closed 2 months ago
i have a drogon::HttpRequestPtr object to post http request, i add some headers.
drogon::HttpRequestPtr
but when i output the map:
req_ptr_->addHeader("ASDASD", "haA"); for (const auto & [key, value] : req_ptr_->getHeaders()) cout << key << " = " << value << endl;
I found it is all lower case.
server side is case sensitive, which cause the request failed.
could you help on this?
i have a
drogon::HttpRequestPtr
object to post http request, i add some headers.but when i output the map:
I found it is all lower case.
server side is case sensitive, which cause the request failed.
could you help on this?