~jameinel/loggerhead/less_work_for_head_716217

Viewing all changes in revision 424.

  • Committer: John Arbash Meinel
  • Date: 2011-02-10 02:33:15 UTC
  • Revision ID: john@arbash-meinel.com-20110210023315-515pkynlfpfs3cvm
Fix bug #716201 by suppressing body content when getting a HEAD request.

This adds some WSGI middleware that suppresses returning body content if a HEAD request
is received.

Note that we don't yet pass GET down to the lower levels, so they could still
decide whether they can do less work or not. We may want to make the standard BranchWSGIApp
do less work under those circumstances.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: