summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-07-24 15:38:51 -0400
committerDonald Stufft <donald@stufft.io>2013-07-24 15:38:51 -0400
commit7b278c589b7cee352c92d44333fef97ef44331c8 (patch)
tree424c438b6974137267e20a0930c25668259528ef
parentc51e32f83c158c8df107a9954324cf56f83ff823 (diff)
downloaddecorator-7b278c589b7cee352c92d44333fef97ef44331c8.tar.gz
Send the Surrogate Key header with Package Downloads
-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