Surround substitute with inflate/deflate

Just using substitute doesn't work with Accept-Encoding: gzip, deflate
because the filter chain winds up being wrong.

https://serverfault.com/questions/843905/apache-mod-substitute-works-in-curl-but-not-on-browser

Change-Id: I2fe8af25242d66ffdc4ab21138e33d4b76bf32b8
This commit is contained in:
Monty Taylor 2018-07-17 16:26:19 -05:00
parent f1723017d6
commit df2ed021f1
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
# Rewrite the locations of the actual files
<Location /pypi>
SetOutputFilter SUBSTITUTE
SetOutputFilter INFLATE;SUBSTITUTE;DEFLATE
Substitute "s|https://files.pythonhosted.org/|/pypifiles/|ni"
</Location>