Skip to content

Properly prevent sending XML files opened in text mode

Erwan Rouchet requested to merge send-xml-binary into master

Sending XML files opened in text mode breaks the Content-Length header sent by requests, making the server wait for more data until it times out or making it parse corrupted XML data. This is a common mistake when using body=open(path).

Merge request reports

Loading