Skip to content

Commit 09b3f9e

Browse files
authored
Add missing headers to subtree fetch (#1077)
* fetch with options * semicolon
1 parent 599e58d commit 09b3f9e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/plugins/base/ImplicitTilingPlugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export class ImplicitTilingPlugin {
4747

4848
const loader = new SUBTREELoader( tile );
4949
loader.workingPath = tile.__basePath;
50+
loader.fetchOptions = this.tiles.fetchOptions;
5051
return loader.parse( buffer );
5152

5253
}

src/plugins/base/SUBTREELoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export class SUBTREELoader extends LoaderBase {
284284
bufferHeader.uri
285285
);
286286

287-
const fetchPromise = fetch( url )
287+
const fetchPromise = fetch( url, this.fetchOptions )
288288
.then( response => {
289289

290290
if ( ! response.ok ) {

0 commit comments

Comments
 (0)