Skip to content

Should WithRawResponseBody be opinionated about content type? #60

@najork

Description

@najork

WithRawResponseBody sets the Accept header to application/octet-stream. This can lead to 406 Not Acceptable responses if the endpoint doesn't support the advertised type, requiring clients to explicitly add additional types to the request header, which could be potentially confusing to consumers of this library.

https://github.com/palantir/conjure-go-runtime/blob/develop/conjure-go-client/httpclient/request_params.go#L124

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