##// 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 env['REMOTE_ADDR'] = self.client_address[0]
185 env['REMOTE_ADDR'] = self.client_address[0]
186 env['QUERY_STRING'] = query or ''
186 env['QUERY_STRING'] = query or ''
187
187
188 if pycompat.ispy3:
188 if self.headers.get_content_type() is None:
189 if self.headers.get_content_type() is None:
189 env['CONTENT_TYPE'] = self.headers.get_default_type()
190 env['CONTENT_TYPE'] = self.headers.get_default_type()
191 else:
192 env['CONTENT_TYPE'] = self.headers.get_content_type()
193 length = self.headers.get('content-length')
194 else:
190 else:
195 if self.headers.typeheader is None:
191 env['CONTENT_TYPE'] = self.headers.get_content_type()
196 env['CONTENT_TYPE'] = self.headers.type
192 length = self.headers.get('content-length')
197 else:
198 env['CONTENT_TYPE'] = self.headers.typeheader
199 length = self.headers.getheader('content-length')
200 if length:
193 if length:
201 env['CONTENT_LENGTH'] = length
194 env['CONTENT_LENGTH'] = length
202 for header in [
195 for header in [
General Comments 0
You need to be logged in to leave comments. Login now