diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-01-27 18:41:51 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-01-27 19:24:18 +0100 |
commit | dc5d366642239bb790fb4806d828e0360d1113dc (patch) | |
tree | 2a267773ff649fca679673294c4a1762c7286536 | |
parent | 05bb3942d4645465a4cbfab281716a91a84e4af5 (diff) | |
download | qutebrowser-dc5d366642239bb790fb4806d828e0360d1113dc.tar.gz qutebrowser-dc5d366642239bb790fb4806d828e0360d1113dc.zip |
tests: Work around mimetype issue
-rw-r--r-- | tests/end2end/fixtures/webserver_sub.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/end2end/fixtures/webserver_sub.py b/tests/end2end/fixtures/webserver_sub.py index f65e7df4c..b02c605d1 100644 --- a/tests/end2end/fixtures/webserver_sub.py +++ b/tests/end2end/fixtures/webserver_sub.py @@ -60,6 +60,12 @@ def send_data(path): data_dir = END2END_DIR / 'data' if (data_dir / path).is_dir(): path += '/index.html' + + if path == 'service-worker/worker.js': + # For some reason, Flask returns this with a text/plain mimetype on GitHub + # Actions with Windows?! + flask.send_file(path, mimetype='text/javascript') + return flask.send_from_directory(data_dir, path) |