From 237684cfd042917a26274872c4ffe1e3cdd5c3a8 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Fri, 8 Jun 2018 15:26:25 +0900 Subject: Performance optimization --- src/net/HttpParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net') 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& headers) { +string HttpParser::parseHttp(bool isRequest, const string& data, unordered_map& headers) { bool onlyNewLineChar = false; size_t headerEnd = data.find("\r\n\r\n"); if (headerEnd == data.npos) { -- cgit v1.2.3