Merge pull request #191 from protomaps/serverless-ext-mismatch

serverless: improve error message if request doesn't match archive type
This commit is contained in:
Brandon Liu
2023-06-12 10:05:30 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -192,7 +192,7 @@ export const handlerRaw = async (
} }
return apiResp( return apiResp(
400, 400,
"Bad request: archive has type ." + pair[1], `Bad request: requested .${ext} but archive has type .${pair[1]}`,
false, false,
headers headers
); );

View File

@@ -200,7 +200,7 @@ export default {
continue; continue;
} }
return cacheableResponse( return cacheableResponse(
"Bad request: archive has type ." + pair[1], `Bad request: requested .${ext} but archive has type .${pair[1]}`,
cacheable_headers, cacheable_headers,
400 400
); );