Show More
@@ -130,7 +130,13 b' class _httprequesthandler(httpservermod.' | |||
|
130 | 130 | if query: |
|
131 | 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 | 140 | if self.headers.typeheader is None: |
|
135 | 141 | env[r'CONTENT_TYPE'] = self.headers.type |
|
136 | 142 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now