Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document HTTP encoding limitations for Fetch plugins #406

Open
zmughal opened this issue Aug 17, 2023 · 0 comments
Open

Document HTTP encoding limitations for Fetch plugins #406

zmughal opened this issue Aug 17, 2023 · 0 comments
Labels
🐞Bug Something fails that should not (not a feature) 📖Documentation Needs new or re-worded documentation

Comments

@zmughal
Copy link
Member

zmughal commented Aug 17, 2023

In a particular case, I had a server that was always returning a response with
Content-Encoding: gzip:

curl -sS -D - "https://www.swi-prolog.org/download/stable/src/" -o /dev/null

regardless of content negotiation via Accept-Encoding: in the request.

Well, it was. This got fixed yesterday so it no longer applies. But
continuing with the issue...


Since the content negotiation was not working properly, I believe that using
Fetch::HTTPTiny, Fetch::CurlCommand, or Fetch::Wget plugins would break
when trying to pass the text/html content as they would not be able to decode
the content. By changing the Fetch plugin to Fetch::LWP, the response would
be decoded properly.

@zmughal zmughal added 🐞Bug Something fails that should not (not a feature) 📖Documentation Needs new or re-worded documentation labels Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞Bug Something fails that should not (not a feature) 📖Documentation Needs new or re-worded documentation
Development

No branches or pull requests

1 participant