##// END OF EJS Templates
hgweb: detect Python 3-era libraries and use modern attribute names...
Augie Fackler -
r34720:6e1b0569 default
parent child Browse files
Show More
@@ -130,7 +130,13 b' class _httprequesthandler(httpservermod.'
130 if query:
130 if query:
131 env[r'QUERY_STRING'] = query
131 env[r'QUERY_STRING'] = query
132
132
133 if True:
133 if pycompat.ispy3:
134 if self.headers.get_content_type() is None:
135 env[r'CONTENT_TYPE'] = self.headers.get_default_type()
136 else:
137 env[r'CONTENT_TYPE'] = self.headers.get_content_type()
138 length = self.headers.get('content-length')
139 else:
134 if self.headers.typeheader is None:
140 if self.headers.typeheader is None:
135 env[r'CONTENT_TYPE'] = self.headers.type
141 env[r'CONTENT_TYPE'] = self.headers.type
136 else:
142 else:
General Comments 0
You need to be logged in to leave comments. Login now