]> git.sesse.net Git - cubemap/blobdiff - parse.h
Capitalize HTTP header names after dashes.
[cubemap] / parse.h
diff --git a/parse.h b/parse.h
index a56b1f4230edce227ff616603c8a9550d8b70c55..1924cc08c9f3aab49c54bff4917ab38a6fb0a88d 100644 (file)
--- a/parse.h
+++ b/parse.h
@@ -4,8 +4,8 @@
 // Various routines that deal with parsing; both HTTP requests and more generic text.
 
 #include <stddef.h>
-#include <map>
 #include <string>
+#include <unordered_map>
 #include <vector>
 
 // Split a line on whitespace, e.g. "foo  bar baz" -> {"foo", "bar", "baz"}.
@@ -16,7 +16,7 @@ std::vector<std::string> split_lines(const std::string &str);
 
 // Extract HTTP headers from a request or response. Ignores the first line,
 // where the verb or the return code is.
-std::multimap<std::string, std::string> extract_headers(
+std::unordered_multimap<std::string, std::string> extract_headers(
        const std::vector<std::string> &lines, const std::string &log_context);
 
 // Add the new data to an existing string, looking for \r\n\r\n