You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Trying to process the response that is a multipart/form-data.
multipart_data = MultipartDecoder.from_response(response)
for part in multipart_data.parts:
print(part.content)
print(part.headers)
which fails with requests_toolbelt.multipart.decoder.ImproperBodyPartContentException: content does not contain CR-LF-CR-LF
And when I try to get to the body of the response(runtime version 2.32.3) any other way the "\r\n"'s don't exist.
response headers are
Hi,
Trying to process the response that is a multipart/form-data.
which fails with
requests_toolbelt.multipart.decoder.ImproperBodyPartContentException: content does not contain CR-LF-CR-LF
And when I try to get to the body of the response(runtime version 2.32.3) any other way the "\r\n"'s don't exist.
response headers are
Started with conda env yesterday
is the POST request and it sends over a multpart via toolbelt's MultipartEncoder.
After response returns tried sending content to binary file out and see no "\r\n"'s there either.
I've written nodejs & Java clients that leave the response "\r\n"'s alone and I have choices of how the response body gets processed.
Is there a setting for requests that corrects this behavior? Many suggestions out on the wild web but none successful so far
The text was updated successfully, but these errors were encountered: