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
But the downloaded file contains some binary characters. It's not a plain text file.
Details
Sometimes server might decide to encode the file content (using "Gzip", "compress", "deflate" or "br" method).
In this case Selenide doesn't decode the file content.
I personally experience this problem with "content-encoding": "br". Not sure if other encodings cause some problems.
Solution
I see two possible solutions.
Implement decoding of all possible encoding methods: "Gzip", "compress", "deflate", "br". It should not be too hard.
Add another request interceptor which overrides Accept-Encoding header before the download request:
The problem
I want to download file using PROXY method:
But the downloaded file contains some binary characters. It's not a plain text file.
Details
Sometimes server might decide to encode the file content (using "Gzip", "compress", "deflate" or "br" method).
In this case Selenide doesn't decode the file content.
I personally experience this problem with
"content-encoding": "br"
. Not sure if other encodings cause some problems.Solution
I see two possible solutions.
Accept-Encoding
header before the download request:Then server should not encode the file content.
Tell us about your environment
The text was updated successfully, but these errors were encountered: