summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorOleg Morozenkov <omorozenkov@gmail.com>2018-06-17 22:03:01 +0300
committerGitHub <noreply@github.com>2018-06-17 22:03:01 +0300
commita854dd975f13e71338c80d85717be6fb6e8c185a (patch)
tree6db1b94ea9ca29b72f7788f7f8c62c2ae20222c2 /src/net
parentc8d40dccabaaa406faed6c0797a92bac811c9d0f (diff)
parentb89c8f2fc73e25f1740c191faf0c7e8b9c18c9b9 (diff)
Merge pull request #67 from JellyBrick/parser_refactor
Code optimization
Diffstat (limited to 'src/net')
-rw-r--r--src/net/HttpParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/HttpParser.cpp b/src/net/HttpParser.cpp
index befbc3b..3dd9215 100644
--- a/src/net/HttpParser.cpp
+++ b/src/net/HttpParser.cpp
@@ -149,7 +149,7 @@ string HttpParser::generateResponse(const string& data, const string& mimeType,
return result;
}
-string HttpParser::parseHttp(bool isRequest, const string& data, map<string, string>& headers) {
+string HttpParser::parseHttp(bool isRequest, const string& data, unordered_map<string, string>& headers) {
bool onlyNewLineChar = false;
size_t headerEnd = data.find("\r\n\r\n");
if (headerEnd == data.npos) {