suds-community / suds

Suds is a lightweight SOAP python client for consuming Web Services. A community fork of the jurko fork.
https://suds.readthedocs.io/
GNU Lesser General Public License v3.0
172 stars 54 forks source link

gzip and deflate compression with headers 'Content-Encoding' and 'Accept-Encoding' #45

Closed sebromon closed 3 years ago

sebromon commented 3 years ago

Suds library does not take into account headers like 'Content-Encoding' and 'Accept-Encoding'

The following patch fixes the bug.

https://github.com/sebromon/suds/commit/ad12bc40e854674e02021a66617dfac00c7d0e75

With this commit :

But suds library should use urllib3 which compress or decompress data automatically.

This patch works in Python 3 with web-services SOAP with Apache server.

phillbaker commented 3 years ago

Moving this library to python3 and fully converting to python3 is a goal for this library, however, while we work to that end, would you like to submit that patch as a pull request?

phillbaker commented 3 years ago

I've cherry-picked your commit here: fb02619