From 6debc66b929e987b8d8e98a8c89fc8549206c8b8 Mon Sep 17 00:00:00 2001 From: Eujin Ong Date: Tue, 27 Sep 2022 01:30:39 +0700 Subject: [PATCH] Change JavaScript MIME type --- tests/end/test_ending.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/end/test_ending.py b/tests/end/test_ending.py index 3ae2442dc..c11d36af0 100644 --- a/tests/end/test_ending.py +++ b/tests/end/test_ending.py @@ -285,7 +285,7 @@ def test_get_static_sink(): # get trial.js rep = client.simulate_get('/static/index.js') assert rep.status == falcon.HTTP_OK - assert rep.headers['content-type'] == 'application/javascript; charset=UTF-8' + assert rep.headers['content-type'] == 'text/javascript; charset=UTF-8' assert len(rep.text) > 0 assert rep.text == '// vanilla index.js\n\nm.render(document.body, "Hello world")\n'