Show More
@@ -12,7 +12,9 b' by the WSGI standard and strictly implem' | |||||
12 | > import sys |
|
12 | > import sys | |
13 | > from mercurial import ( |
|
13 | > from mercurial import ( | |
14 | > dispatch, |
|
14 | > dispatch, | |
|
15 | > encoding, | |||
15 | > hg, |
|
16 | > hg, | |
|
17 | > pycompat, | |||
16 | > ui as uimod, |
|
18 | > ui as uimod, | |
17 | > util, |
|
19 | > util, | |
18 | > ) |
|
20 | > ) | |
@@ -68,13 +70,15 b' by the WSGI standard and strictly implem' | |||||
68 | > i = hgweb(b'.') |
|
70 | > i = hgweb(b'.') | |
69 | > for c in i(env, startrsp): |
|
71 | > for c in i(env, startrsp): | |
70 | > pass |
|
72 | > pass | |
71 | > print('---- ERRORS') |
|
73 | > sys.stdout.flush() | |
72 | > print(errors.getvalue()) |
|
74 | > pycompat.stdout.write(b'---- ERRORS\n') | |
|
75 | > pycompat.stdout.write(b'%s\n' % errors.getvalue()) | |||
73 | > print('---- OS.ENVIRON wsgi variables') |
|
76 | > print('---- OS.ENVIRON wsgi variables') | |
74 | > print(sorted([x for x in os.environ if x.startswith('wsgi')])) |
|
77 | > print(sorted([x for x in os.environ if x.startswith('wsgi')])) | |
75 | > print('---- request.ENVIRON wsgi variables') |
|
78 | > print('---- request.ENVIRON wsgi variables') | |
76 | > with i._obtainrepo() as repo: |
|
79 | > with i._obtainrepo() as repo: | |
77 |
> print(sorted([x for x in repo.ui.environ |
|
80 | > print(sorted([encoding.strfromlocal(x) for x in repo.ui.environ | |
|
81 | > if x.startswith(b'wsgi')])) | |||
78 | > EOF |
|
82 | > EOF | |
79 | $ "$PYTHON" request.py |
|
83 | $ "$PYTHON" request.py | |
80 | ---- STATUS |
|
84 | ---- STATUS |
General Comments 0
You need to be logged in to leave comments.
Login now