Skip to content

Commit

Permalink
Replace insert(make_pair()) with emplace()
Browse files Browse the repository at this point in the history
  • Loading branch information
tindy2013 authored Mar 18, 2024
1 parent e051f31 commit c26b636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/webserver_httplib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static httplib::Server::Handler makeHandler(const responseRoute &rr)
{
continue;
}
req.headers.insert(std::make_pair(h.first.data(), h.second.data()));
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")
Expand Down

0 comments on commit c26b636

Please sign in to comment.