HeadMiddleware breaks HTTP redirects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
loggerhead |
Fix Released
|
High
|
John A Meinel |
Bug Description
I don't really know why this is happening, but in the latest loggerhead trunk, if I do "bzr serve --http", then go browse to "/" which usually redirects to "/changes", I get a traceback in the terminal. If I change the line:
=== modified file '__init__.py'
--- __init__.py 2011-03-19 08:35:57 +0000
+++ __init__.py 2011-04-11 19:36:51 +0000
@@ -86,7 +86,7 @@
config = LoggerheadConfi
app = BranchesFromTra
- app = HeadMiddleware(app)
+ # app = HeadMiddleware(app)
app = HTTPExceptionHa
serve(app, host=host, port=port)
Then my web browser redirects as expected.
This doesn't affect Launchpad, since it uses its own Application stack that doesn't include HeadMiddleware.
Related branches
- Martin Pool: Approve
-
Diff: 14 lines (+4/-1)1 file modified__init__.py (+4/-1)
Changed in loggerhead: | |
assignee: | nobody → John A Meinel (jameinel) |
status: | Triaged → In Progress |
landed in trunk