~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Robert Collins
  • Date: 2012-02-03 01:37:21 UTC
  • mfrom: (466.1.2 bug-728209)
  • Revision ID: robertc@robertcollins.net-20120203013721-5ntnp45xb9in5eo6
    - Avoid crashing when viewing or annotating a non-existent file.
      (William Grant, #728209)

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
        config = LoggerheadConfig(argv)
87
87
        setup_logging(config, init_logging=False, log_file=sys.stderr)
88
88
        app = BranchesFromTransportRoot(transport.base, config)
89
 
        app = HeadMiddleware(app)
 
89
        # Bug #758618, HeadMiddleware seems to break HTTPExceptionHandler from
 
90
        # actually sending appropriate return codes to the client. Since nobody
 
91
        # desperately needs HeadMiddleware right now, just ignoring it.
 
92
        # app = HeadMiddleware(app)
90
93
        app = HTTPExceptionHandler(app)
91
94
        serve(app, host=host, port=port)
92
95