Skip to content

Commit 451f1f0

Browse files
authored
Merge pull request #1991 from joepke/feature/use-mimetype-in-response-header
2 parents a90f545 + d9c3857 commit 451f1f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygeoapi/api/tiles.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def get_collection_tiles_data(
238238
p = load_plugin('provider', t)
239239

240240
format_ = p.format_type
241-
headers['Content-Type'] = format_
241+
headers['Content-Type'] = t['format']['mimetype']
242242

243243
LOGGER.debug(f'Fetching tileset id {matrix_id} and tile {z_idx}/{y_idx}/{x_idx}') # noqa
244244
content = p.get_tiles(layer=p.get_layer(), tileset=matrix_id,

0 commit comments

Comments
 (0)