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:
parent
f1723017d6
commit
df2ed021f1
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user