From 162a8f4a54c94d797b4de6ebeb11f0abcd085797 Mon Sep 17 00:00:00 2001 From: Chrysostomos Nanakos Date: Tue, 7 Oct 2025 11:13:02 +0300 Subject: [PATCH] fix: Use startswith for Content-Type header assertion Signed-off-by: Chrysostomos Nanakos --- benchmarks/codex/agent/tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/codex/agent/tests/test_api.py b/benchmarks/codex/agent/tests/test_api.py index 7f3cae3..4996988 100644 --- a/benchmarks/codex/agent/tests/test_api.py +++ b/benchmarks/codex/agent/tests/test_api.py @@ -25,7 +25,7 @@ async def test_should_create_file(): ) assert response.status_code == 200 - assert response.headers["content-type"] == "text/plain" + assert response.headers["content-type"].startswith("text/plain") assert response.charset_encoding == "utf-8" manifest = await codex_client.manifest(response.text)