From 553b49214807f7b484c705c17ae652f11e9159da Mon Sep 17 00:00:00 2001 From: XProger Date: Thu, 21 Sep 2017 05:59:54 +0300 Subject: [PATCH] #15 fix gzip content rules encoding for Safari --- src/level.h | 3 --- src/platform/web/level/.htaccess | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 src/platform/web/level/.htaccess diff --git a/src/level.h b/src/level.h index 90e9efd..3f93061 100644 --- a/src/level.h +++ b/src/level.h @@ -66,9 +66,6 @@ struct Level : IGame { case TR::VER_TR1_PC : strcat(buf, ".PHD"); break; case TR::VER_TR1_PSX : strcat(buf, ".PSX"); break; } - #ifdef __EMSCRIPTEN__ - strcat(buf, ".gz"); - #endif new Stream(buf, loadAsync); } diff --git a/src/platform/web/level/.htaccess b/src/platform/web/level/.htaccess new file mode 100644 index 0000000..a158f85 --- /dev/null +++ b/src/platform/web/level/.htaccess @@ -0,0 +1,16 @@ +AddEncoding gzip .gz + + + ForceType application/octet-stream + Header set Content-Encoding: gzip + + + + ForceType application/octet-stream + Header set Content-Encoding: gzip + + + + ForceType application/octet-stream + Header set Content-Encoding: gzip + \ No newline at end of file