##// END OF EJS Templates
hgweb: fallback to checking wsgireq.env for REPO_NAME for 3rd party hosting...
Matt Harbison -
r37634:5e81cf96 default
parent child Browse files
Show More
@@ -161,6 +161,12 b' def parserequestfromenv(env, reponame=No'
161 env = {k: v.encode('latin-1') if isinstance(v, str) else v
161 env = {k: v.encode('latin-1') if isinstance(v, str) else v
162 for k, v in env.iteritems()}
162 for k, v in env.iteritems()}
163
163
164 # Some hosting solutions are emulating hgwebdir, and dispatching directly
165 # to an hgweb instance using this environment variable. This was always
166 # checked prior to d7fd203e36cc; keep doing so to avoid breaking them.
167 if not reponame:
168 reponame = env.get('REPO_NAME')
169
164 if altbaseurl:
170 if altbaseurl:
165 altbaseurl = util.url(altbaseurl)
171 altbaseurl = util.url(altbaseurl)
166
172
General Comments 0
You need to be logged in to leave comments. Login now