diff options
author | Donald Stufft <donald@stufft.io> | 2013-07-24 15:38:51 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-07-24 15:38:51 -0400 |
commit | 7b278c589b7cee352c92d44333fef97ef44331c8 (patch) | |
tree | 424c438b6974137267e20a0930c25668259528ef | |
parent | c51e32f83c158c8df107a9954324cf56f83ff823 (diff) | |
download | decorator-7b278c589b7cee352c92d44333fef97ef44331c8.tar.gz |
Send the Surrogate Key header with Package Downloads
-rw-r--r-- | webui.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |