mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
aws: return 501 instead of 400 if no PUBLIC_HOSTNAME configured for TileJSON
This commit is contained in:
@@ -136,7 +136,7 @@ export const handlerRaw = async (
|
|||||||
if (!tile) {
|
if (!tile) {
|
||||||
if (!process.env.PUBLIC_HOSTNAME) {
|
if (!process.env.PUBLIC_HOSTNAME) {
|
||||||
return apiResp(
|
return apiResp(
|
||||||
400,
|
501,
|
||||||
"PUBLIC_HOSTNAME must be set for TileJSON",
|
"PUBLIC_HOSTNAME must be set for TileJSON",
|
||||||
false,
|
false,
|
||||||
headers
|
headers
|
||||||
|
|||||||
Reference in New Issue
Block a user