~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/service.py

  • Committer: Curtis Hovey
  • Date: 2012-03-17 21:21:37 UTC
  • Revision ID: curtis.hovey@canonical.com-20120317212137-r7zonl5ksenpa5ci
Save the scheme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        self.method = environ['REQUEST_METHOD']
27
27
        self.host_port = shift_path_info(environ)
28
28
        self.application = shift_path_info(environ)
29
 
        self.path = environ['PATH_INFO'].split('/')[1:]
 
29
        path = environ['PATH_INFO'].split('/')
 
30
        self.scheme = path.pop(0)
 
31
        self.path = path
30
32
        self.query_string = environ['QUERY_STRING']
31
33
        return self.handle_request()
32
34