Skip to content

Commit

Permalink
fix issue meltwater#67
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoMatsui committed May 13, 2020
1 parent 2eb36b8 commit 4c8fd88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/served/response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ response::set_header(std::string const& header, std::string const& value)

std::transform(header.begin(), header.end(), mut_header.begin(), ::tolower);

_headers[mut_header] = header_pair(header, value);
_headers.emplace(std::make_pair(mut_header, header_pair(header, value)));
}

void
Expand Down
2 changes: 1 addition & 1 deletion src/served/response.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace served {
class response
{
typedef std::tuple<std::string, std::string> header_pair;
typedef std::map<std::string, header_pair> header_list;
typedef std::multimap<std::string, header_pair> header_list;

int _status;
header_list _headers;
Expand Down

0 comments on commit 4c8fd88

Please sign in to comment.