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