162
162
request_data_length = int(environ['CONTENT_LENGTH'])
163
163
request_data_bytes = environ['wsgi.input'].read(request_data_length)
164
164
smart_protocol_request = self.make_request(
165
transport, out_buffer.write, request_data_bytes, adjusted_rcp)
165
transport, out_buffer.write, request_data_bytes,
166
167
if smart_protocol_request.next_read_size() != 0:
167
168
# The request appears to be incomplete, or perhaps it's just a
168
169
# newer version we don't understand. Regardless, all we can do
169
170
# is return an error response in the format of our version of the
173
174
response_data = out_buffer.getvalue()
174
175
headers = [('Content-type', 'application/octet-stream')]