Show More
@@ -56,7 +56,7 b' class hgweb(object):' | |||||
56 |
|
56 | |||
57 | def refresh(self, request=None): |
|
57 | def refresh(self, request=None): | |
58 | if request: |
|
58 | if request: | |
59 |
self.ui.environ = request.env |
|
59 | self.repo.ui.environ = request.env | |
60 | mtime = get_mtime(self.repo.root) |
|
60 | mtime = get_mtime(self.repo.root) | |
61 | if mtime != self.mtime: |
|
61 | if mtime != self.mtime: | |
62 | self.mtime = mtime |
|
62 | self.mtime = mtime |
@@ -60,9 +60,14 b' env = {' | |||||
60 | 'SERVER_PROTOCOL': 'HTTP/1.0' |
|
60 | 'SERVER_PROTOCOL': 'HTTP/1.0' | |
61 | } |
|
61 | } | |
62 |
|
62 | |||
63 | hgweb('.')(env, startrsp) |
|
63 | i = hgweb('.') | |
|
64 | i(env, startrsp) | |||
64 | print '---- ERRORS' |
|
65 | print '---- ERRORS' | |
65 | print errors.getvalue() |
|
66 | print errors.getvalue() | |
|
67 | print '---- OS.ENVIRON wsgi variables' | |||
|
68 | print [x for x in os.environ if x.startswith('wsgi')] | |||
|
69 | print '---- request.ENVIRON wsgi variables' | |||
|
70 | print [x for x in i.repo.ui.environ if x.startswith('wsgi')] | |||
66 | EOF |
|
71 | EOF | |
67 |
|
72 | |||
68 | python request.py |
|
73 | python request.py |
@@ -10,3 +10,7 b' 200 Script output follows' | |||||
10 | [('Content-Type', 'text/html; charset=ascii')] |
|
10 | [('Content-Type', 'text/html; charset=ascii')] | |
11 | ---- ERRORS |
|
11 | ---- ERRORS | |
12 |
|
12 | |||
|
13 | ---- OS.ENVIRON wsgi variables | |||
|
14 | [] | |||
|
15 | ---- request.ENVIRON wsgi variables | |||
|
16 | ['wsgi.input', 'wsgi.multithread', 'wsgi.version', 'wsgi.run_once', 'wsgi.errors', 'wsgi.multiprocess', 'wsgi.url_scheme'] |
General Comments 0
You need to be logged in to leave comments.
Login now