Show More
@@ -142,7 +142,10 b' class httpv1protocolhandler(baseprotocol' | |||
|
142 | 142 | return args |
|
143 | 143 | |
|
144 | 144 | def forwardpayload(self, fp): |
|
145 | length = int(self._req.env[r'CONTENT_LENGTH']) | |
|
145 | if r'HTTP_CONTENT_LENGTH' in self._req.env: | |
|
146 | length = int(self._req.env[r'HTTP_CONTENT_LENGTH']) | |
|
147 | else: | |
|
148 | length = int(self._req.env[r'CONTENT_LENGTH']) | |
|
146 | 149 | # If httppostargs is used, we need to read Content-Length |
|
147 | 150 | # minus the amount that was consumed by args. |
|
148 | 151 | length -= int(self._req.env.get(r'HTTP_X_HGARGS_POST', 0)) |
General Comments 0
You need to be logged in to leave comments.
Login now