~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/wsgi.py

  • Committer: Alexander Belchenko
  • Date: 2007-08-10 09:04:38 UTC
  • mto: This revision was merged to the branch mainline in revision 2694.
  • Revision ID: bialix@ukr.net-20070810090438-0835xdz0rl8825qv
fixes after Ian's review

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        path = environ[self.path_var]
77
77
        suffix = '/.bzr/smart'
78
78
        if not (path.startswith(self.prefix) and path.endswith(suffix)):
79
 
            start_response('404 Not Found', [])
 
79
            start_response('404 Not Found', {})
80
80
            return []
81
81
        environ['bzrlib.relpath'] = path[len(self.prefix):-len(suffix)]
82
82
        return self.app(environ, start_response)