Closed cartermckinnon closed 3 years ago
GZIP request to 'render.html' and 'execute' don't return error message, but return broken response.text, like <html><head></head><body>��k��6�(��U�?
��x��`
To bypass need change 'Accept-Encoding': 'gzip' to: 'Accept-Encoding': 'deflate' As I found, this problem was in 2016 https://stackoverflow.com/a/38693397/6357045, https://github.com/scrapinghub/splash/issues/423, and seems in 2014 https://github.com/scrapinghub/splash/pull/102.
Requests to
/render.json
which are gzip-compressed fail with:Reproduce with:
GZIP compression is enabled by default in the HTTP client I'm using (java's jersey), so the lack of support from Splash is a pain.
I'm happy to PR this if a better pythoner isn't available?