mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
Tests: Specify Content-Type header in tests that use HTTP server
Currently these tests work, because we are lucky to have fetched response body available in `load_document()` to correctly sniff the MIME type. This is a preparation for upcoming change that makes fetching unbuffered, which will break these test unless we explicitly set the `Content-Type` header.
This commit is contained in:
committed by
Tim Flynn
parent
5bbf2ddc5b
commit
a79c995d8a
Notes:
github-actions[bot]
2025-11-20 11:31:37 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/a79c995d8a0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6839 Reviewed-by: https://github.com/trflynn89 ✅
@@ -9,6 +9,7 @@
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Expose-Headers": "Content-Language",
|
||||
"Content-Language": "ko",
|
||||
"Content-Type": "text/html",
|
||||
},
|
||||
body: `
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user