summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-05-04 14:39:51 +0100
committerSadie Powell <sadie@witchery.services>2025-05-04 14:39:51 +0100
commitbb9074cbd585ca1b595b7520b5bf38c4619eed62 (patch)
treeaac54c92d97f2cec7a6e5836783c7e0926722722
parent72f5e3580fdc68161642ee0f11a354dbc74fffeb (diff)
Fix HTTP headers to be case insensitive as required by the spec.
-rw-r--r--include/modules/httpd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/modules/httpd.h b/include/modules/httpd.h
index 5b555fbab..03d157df0 100644
--- a/include/modules/httpd.h
+++ b/include/modules/httpd.h
@@ -83,10 +83,10 @@ struct HTTPReply final
/* A message from someone */
struct HTTPMessage final
{
- std::map<Anope::string, Anope::string> headers;
- std::map<Anope::string, Anope::string> cookies;
- std::map<Anope::string, Anope::string> get_data;
- std::map<Anope::string, Anope::string> post_data;
+ std::map<Anope::string, Anope::string, ci::less> headers;
+ std::map<Anope::string, Anope::string, ci::less> cookies;
+ std::map<Anope::string, Anope::string, ci::less> get_data;
+ std::map<Anope::string, Anope::string, ci::less> post_data;
Anope::string content;
};