~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: John Arbash Meinel
  • Date: 2011-02-10 02:33:15 UTC
  • mto: This revision was merged to the branch mainline in revision 441.
  • 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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
"""Loggerhead is a web viewer for projects in bazaar"""
20
20
 
21
 
 
22
21
from distutils.core import setup
 
22
 
23
23
import loggerhead
24
24
 
25
25
 
34
34
    packages = ["loggerhead",
35
35
                "loggerhead/apps",
36
36
                "loggerhead/controllers",
37
 
                "loggerhead/templates"],
 
37
                "loggerhead/templates",
 
38
                "bzrlib.plugins.loggerhead"],
 
39
    package_dir={'bzrlib.plugins.loggerhead':'.'},
38
40
    package_data = {"loggerhead": ["templates/*.pt",
39
41
                                   "static/css/*.css",
40
42
                                   "static/javascript/*.js",