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

suggest docs of Accept-Encoding change and on getting all HTTP::Message decodable() #245

Open
kryde opened this issue Feb 26, 2018 · 0 comments

Comments

@kryde
Copy link

kryde commented Feb 26, 2018

The docs of WWW::Mechanize mentions under _modify_request that it sets Accept-Encoding: gzip. As a suggestion it could say there what to do if you want to change that for any reason.

I presume the answer would be $mech->add_header('Accept-Encoding' => 'whatever').

I did instead $mech->default_header('Accept-Encoding' => scalar HTTP::Message::decodable()) the same as superclass LWP::UserAgent recommends but found it didn't work - Mechanize somehow looks only at add_header not default_header. I couldn't tell if that was a bug or a feature.

The docs could show what to do to get all HTTP::Message::decodable(), presuming that would in fact work, or wouldn't be the default anyway - though I'm not sure I've seen an actual server giving anything except gzip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant