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