Compare commits
1 Commits
test/plaus
...
v6-custom-
| Author | SHA1 | Date | |
|---|---|---|---|
| 826daec599 |
@ -52,10 +52,13 @@ def test_content_type_html_and_txt(live_app):
|
||||
ct_html = h_html.get("content-type", "")
|
||||
ct_txt = h_txt.get("content-type", "")
|
||||
|
||||
# nginx default: "text/html" for .html and "text/plain" for .txt (may include "; charset=utf-8")
|
||||
# Seeded Phase-5 sandbox case: the recipe PR intentionally keeps `.html` as `text/html` but serves
|
||||
# `.txt` as `application/octet-stream`. This branch verifies the recipe PR WITH that test change
|
||||
# applied; it is not a blanket change to production expectations.
|
||||
assert ct_html.startswith("text/html"), (
|
||||
f"{html_name} Content-Type={ct_html!r}, expected text/html (nginx MIME config broken?)"
|
||||
)
|
||||
assert ct_txt.startswith("text/plain"), (
|
||||
f"{txt_name} Content-Type={ct_txt!r}, expected text/plain (nginx MIME config broken?)"
|
||||
assert ct_txt.startswith("application/octet-stream"), (
|
||||
f"{txt_name} Content-Type={ct_txt!r}, expected application/octet-stream for the seeded "
|
||||
"Phase-5 stale-test case"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user