From ee2a5d9f2f158528e1cfd8f9040004df80b411f2 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Tue, 15 Oct 2024 07:31:37 -0700 Subject: [PATCH] Fix second Content Type header Refs https://github.com/readthedocs/readthedocs.org/pull/11680 --- dockerfiles/nginx/proxito.conf.template | 1 + 1 file changed, 1 insertion(+) diff --git a/dockerfiles/nginx/proxito.conf.template b/dockerfiles/nginx/proxito.conf.template index 23ce101087f..592872f2737 100644 --- a/dockerfiles/nginx/proxito.conf.template +++ b/dockerfiles/nginx/proxito.conf.template @@ -31,6 +31,7 @@ server { location /_/static/javascript/readthedocs-addons.js.map { proxy_pass https://raw.githubusercontent.com/readthedocs/addons/$NGINX_ADDONS_GITHUB_TAG/dist/readthedocs-addons.js.map; proxy_cache_valid 24h; + proxy_hide_header Content-Type; add_header Content-Type "text/javascript; charset=utf-8" always; }