summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorJellyBrick <shlee1503@naver.com>2018-06-08 15:26:25 +0900
committerJellyBrick <shlee1503@naver.com>2018-06-08 15:26:25 +0900
commit237684cfd042917a26274872c4ffe1e3cdd5c3a8 (patch)
treeff57c7fe069ddf35c8ba1f6c4500c18cc81ab133 /src/net
parentc8d40dccabaaa406faed6c0797a92bac811c9d0f (diff)
Performance 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) {