mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
LibWeb: Make LoadRequest
headers case insensitive
This commit is contained in:
parent
9b61579aa6
commit
1167fdb17a
2 changed files with 3 additions and 4 deletions
|
@ -229,7 +229,6 @@ bool FrameLoader::load(LoadRequest& request, Type type)
|
|||
// -> "frame"
|
||||
// -> "iframe"
|
||||
// `text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`
|
||||
// FIXME: This should be case-insensitive.
|
||||
if (!request.headers().contains("Accept"))
|
||||
request.set_header("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue