diff options
author | Oleg Morozenkov <omorozenkov@gmail.com> | 2018-06-17 22:03:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-17 22:03:01 +0300 |
commit | a854dd975f13e71338c80d85717be6fb6e8c185a (patch) | |
tree | 6db1b94ea9ca29b72f7788f7f8c62c2ae20222c2 /test/tgbot/net | |
parent | c8d40dccabaaa406faed6c0797a92bac811c9d0f (diff) | |
parent | b89c8f2fc73e25f1740c191faf0c7e8b9c18c9b9 (diff) |
Merge pull request #67 from JellyBrick/parser_refactor
Code optimization
Diffstat (limited to 'test/tgbot/net')
-rw-r--r-- | test/tgbot/net/HttpParser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tgbot/net/HttpParser.cpp b/test/tgbot/net/HttpParser.cpp index 9272736..d0a3703 100644 --- a/test/tgbot/net/HttpParser.cpp +++ b/test/tgbot/net/HttpParser.cpp @@ -91,10 +91,10 @@ BOOST_AUTO_TEST_CASE(parseRequest) { "\r\n" "testdata"; - map<string, string> tHeaders; + unordered_map<string, string> tHeaders; string t = HttpParser::getInstance().parseRequest(data, tHeaders); - map<string, string> eHeaders = { + unordered_map<string, string> eHeaders = { { "method", "POST" }, { "path", "/index.html" }, { "host", "example.com" }, @@ -118,10 +118,10 @@ BOOST_AUTO_TEST_CASE(parseResponse) { "\r\n" "testdata"; - map<string, string> tHeaders; + unordered_map<string, string> tHeaders; string t = HttpParser::getInstance().parseResponse(data, tHeaders); - map<string, string> eHeaders = { + unordered_map<string, string> eHeaders = { { "status", "200" }, { "content-type", "text/plain" }, { "content-length", "8" } |