aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2025-04-21 00:57:48 +0200
committerDaniel Schadt <kingdread@gmx.de>2025-04-21 00:57:48 +0200
commit1dc76a03a00f631d45a7ad85838639387e924c5d (patch)
tree99e8a7d1b9102af86bcecb97569d5420f27a0784
parent07c39a5a357be38a93e065ac7fc602d3b453fbee (diff)
downloadfietsboek-1dc76a03a00f631d45a7ad85838639387e924c5d.tar.gz
fietsboek-1dc76a03a00f631d45a7ad85838639387e924c5d.tar.bz2
fietsboek-1dc76a03a00f631d45a7ad85838639387e924c5d.zip
fix content-type in tileproxy
Now that we don't get the response object anymore, we just pretend it's image/png. Nobody would serve OSM tiles with something else, right?
-rw-r--r--fietsboek/views/tileproxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fietsboek/views/tileproxy.py b/fietsboek/views/tileproxy.py
index 11abf2a..df76f25 100644
--- a/fietsboek/views/tileproxy.py
+++ b/fietsboek/views/tileproxy.py
@@ -420,7 +420,7 @@ def tile_proxy(request):
return Response(f"Failed to get tile from {provider}", status_code=status_code)
else:
request.redis.set(cache_key, resp, ex=TTL)
- return Response(resp, content_type=resp.headers.get("Content-type", content_type))
+ return Response(resp, content_type=content_type)
def sources_for(request: Request) -> list[TileLayerConfig]: