From 1dc76a03a00f631d45a7ad85838639387e924c5d Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 21 Apr 2025 00:57:48 +0200 Subject: 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? --- fietsboek/views/tileproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]: -- cgit v1.2.3