Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The error 'Parse Error: Invalid character in chunk size' occurs becau…
…se both response.content_length and 'Transfer-Encoding': 'chunked' are being set in the server response. This creates a conflict, as Transfer-Encoding: chunked does not require a Content-Length. By removing response.content_length = len(image_data), this conflict is avoided, and the error is resolved.
- Loading branch information