Rev 2719: (Matt Nordhoff) Fix return value from wsgi when getting a 404 in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Thu Aug 16 19:16:46 BST 2007
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 2719
revision-id: pqm at pqm.ubuntu.com-20070816181641-xfrq0orpmlde6nuk
parent: pqm at pqm.ubuntu.com-20070816163827-sbv5xkblg2uh7fh4
parent: mnordhoff at mattnordhoff.com-20070815191600-bs6zklckprt6mc1f
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2007-08-16 19:16:41 +0100
message:
(Matt Nordhoff) Fix return value from wsgi when getting a 404
modified:
bzrlib/transport/http/wsgi.py wsgi.py-20061005091552-rz8pva0olkxv0sd8-2
------------------------------------------------------------
revno: 2705.2.1
merged: mnordhoff at mattnordhoff.com-20070815191600-bs6zklckprt6mc1f
parent: pqm at pqm.ubuntu.com-20070815155635-7o7uhuh1ggjomeh4
committer: Matt Nordhoff <mnordhoff at mattnordhoff.com>
branch nick: wsgi-header-fix
timestamp: Wed 2007-08-15 15:16:00 -0400
message:
wsgi.RelpathSetter sent an empty dict of headers instead of an empty list in 404 error responses.
=== modified file 'bzrlib/transport/http/wsgi.py'
--- a/bzrlib/transport/http/wsgi.py 2007-04-25 04:56:19 +0000
+++ b/bzrlib/transport/http/wsgi.py 2007-08-15 19:16:00 +0000
@@ -76,7 +76,7 @@
path = environ[self.path_var]
suffix = '/.bzr/smart'
if not (path.startswith(self.prefix) and path.endswith(suffix)):
- start_response('404 Not Found', {})
+ start_response('404 Not Found', [])
return []
environ['bzrlib.relpath'] = path[len(self.prefix):-len(suffix)]
return self.app(environ, start_response)
More information about the bazaar-commits
mailing list