mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:47:46 +00:00
LibProtocol: Pass response headers in a case insensitive HashMap
HTTP headers are case-insensitive, so just add CaseInsensitiveTraits to the HashMap and we're good to go! :^)
This commit is contained in:
parent
aef5d28828
commit
20f50f9133
6 changed files with 16 additions and 10 deletions
|
@ -44,7 +44,7 @@ private:
|
|||
explicit DownloadWidget(const URL&);
|
||||
|
||||
void did_progress(Optional<u32> total_size, u32 downloaded_size);
|
||||
void did_finish(bool success, const ByteBuffer& payload, RefPtr<SharedBuffer> payload_storage, const HashMap<String, String>& response_headers);
|
||||
void did_finish(bool success, const ByteBuffer& payload, RefPtr<SharedBuffer> payload_storage, const HashMap<String, String, CaseInsensitiveStringTraits>& response_headers);
|
||||
|
||||
URL m_url;
|
||||
String m_destination_path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue