mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
fix way content tyoe header was being processed
This commit is contained in:
parent
20caf32b5b
commit
3f126279ef
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ self.ScramjetServiceWorker = class ScramjetServiceWorker {
|
|||
switch (request.destination) {
|
||||
case "iframe":
|
||||
case "document":
|
||||
if (responseHeaders["content-type"].startsWith("text/html")) {
|
||||
if (responseHeaders["content-type"].toString().startsWith("text/html")) {
|
||||
responseBody = rewriteHtml(await response.text(), url);
|
||||
} else {
|
||||
responseBody = response.body;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue