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
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: