Skip to content

Default Accept-Encoding header for the client #1975

@Yogurt4

Description

@Yogurt4

Suggestion: httplib::Client could set a default Accept-Encoding header automatically, based on the compile options, like

#if defined CPPHTTPLIB_ZLIB_SUPPORT
		{ "Accept-Encoding", "gzip, deflate" }
#endif

(plus the combinations with Brotli).

It's quite trivial to implement. Shall I provide a pull request though?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions