1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibHTTP+ProtocolServer: Use CaseInsensitiveStringTraits for headers

These are supposed to be interpreted caselessly so let's just use the
case insensitive traits throughout. This means we'll understand things
like "Content-Length" even when they send "content-length" etc.
This commit is contained in:
Andreas Kling 2020-05-12 19:07:42 +02:00
parent 413ab652c8
commit 8b8a5fc6c6
5 changed files with 10 additions and 10 deletions

View file

@ -64,7 +64,7 @@ void Download::set_payload(const ByteBuffer& payload)
m_total_size = payload.size();
}
void Download::set_response_headers(const HashMap<String, String>& response_headers)
void Download::set_response_headers(const HashMap<String, String, CaseInsensitiveStringTraits>& response_headers)
{
m_response_headers = response_headers;
}