diff --git a/x-pack/plugins/maps/server/mvt/mvt_routes.ts b/x-pack/plugins/maps/server/mvt/mvt_routes.ts index e6bc0e19973e0..b7c6a59ba54d4 100644 --- a/x-pack/plugins/maps/server/mvt/mvt_routes.ts +++ b/x-pack/plugins/maps/server/mvt/mvt_routes.ts @@ -140,7 +140,7 @@ export function sendResponse( const cacheControl = `public, max-age=${CACHE_TIMEOUT_SECONDS}`; const lastModified = `${new Date().toUTCString()}`; - if (tileStream && headers) { + if (tileStream) { // use the content-encoding and content-length headers from elasticsearch if they exist const { 'content-length': contentLength, 'content-encoding': contentEncoding } = headers; return response.ok({