mirror of
https://github.com/MetaCubeX/subconverter.git
synced 2025-11-04 18:19:42 +08:00
Fix bug of request header forwarding (#709)
* Fix bug of request header forwarding * Replace insert(make_pair()) with emplace() --------- Co-authored-by: Tindy X <49061470+tindy2013@users.noreply.github.com>
This commit is contained in:
parent
eef5328506
commit
be2de49360
@ -47,7 +47,7 @@ static httplib::Server::Handler makeHandler(const responseRoute &rr)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
req.headers[h.first] = h.second;
|
||||
req.headers.emplace(h.first.data(), h.second.data());
|
||||
}
|
||||
req.argument = request.params;
|
||||
if (request.get_header_value("Content-Type") == "application/x-www-form-urlencoded")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user