summaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/webui.py b/webui.py
index f7c11d0..f5aad44 100644
--- a/webui.py
+++ b/webui.py
@@ -841,6 +841,9 @@ class WebUI:
if serial is not None:
self.handler.send_header("X-PYPI-LAST-SERIAL", str(serial))
+ self.handler.send_header(
+ "Surrogate-Key", "package pkg~%s" % package)
+
# we expect nginx to have configured a location named
# '/packages_raw/...' that aliases the original path correctly, see
# http://wiki.nginx.org/X-accel and http://wiki.nginx.org/XSendfile for