mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 19:01:08 +00:00
improve v2 compatibility shim populating metadata
This commit is contained in:
@@ -408,7 +408,7 @@ async function getHeaderAndRoot(
|
||||
|
||||
// V2 COMPATIBILITY
|
||||
if (detectVersion(resp.data) < 3) {
|
||||
return v2.getHeaderAndRoot(source);
|
||||
return [await v2.getHeader(source)];
|
||||
}
|
||||
|
||||
const headerData = resp.data.slice(0, HEADER_SIZE_BYTES);
|
||||
|
||||
Reference in New Issue
Block a user