Skip to content

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

@kryde

Description

@kryde

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions