add more helpful message if you get a 200 for a HEAD with Range request

This commit is contained in:
Brandon Liu
2021-04-28 16:10:15 +08:00
parent 25ee3092e1
commit 51d6a96759

View File

@@ -52,6 +52,7 @@ export class PMTiles {
} }
}) })
} else { } else {
console.log("Check failed: if you know this server supports byte serving, pass allow_200: true")
throw new Error("Invalid response: " + resp.status) throw new Error("Invalid response: " + resp.status)
} }
}) })