Commits

Donald Stufft committed e08a4c6

Send the Surrogate Key header with Package Downloads

  • Participants
  • Parent commits 587661b

Comments (0)

Files changed (1)

             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