##// END OF EJS Templates
hgweb: remove Python 2 support code...
Gregory Szorc -
r49761:e453c698 default
parent child Browse files
Show More
@@ -185,18 +185,11 b' class _httprequesthandler(httpservermod.'
185 185 env['REMOTE_ADDR'] = self.client_address[0]
186 186 env['QUERY_STRING'] = query or ''
187 187
188 if pycompat.ispy3:
189 188 if self.headers.get_content_type() is None:
190 189 env['CONTENT_TYPE'] = self.headers.get_default_type()
191 190 else:
192 191 env['CONTENT_TYPE'] = self.headers.get_content_type()
193 192 length = self.headers.get('content-length')
194 else:
195 if self.headers.typeheader is None:
196 env['CONTENT_TYPE'] = self.headers.type
197 else:
198 env['CONTENT_TYPE'] = self.headers.typeheader
199 length = self.headers.getheader('content-length')
200 193 if length:
201 194 env['CONTENT_LENGTH'] = length
202 195 for header in [
General Comments 0
You need to be logged in to leave comments. Login now