Open optik-aper opened 11 months ago
Currently, the DoWithContext only does JSON unmarshalling of responses. This errors when there is an invalid JSON body like with application/yaml.
DoWithContext
application/yaml
Some kind of header check should determine the type of unmarshal that is to be performed on the body.
Currently, the
DoWithContext
only does JSON unmarshalling of responses. This errors when there is an invalid JSON body like withapplication/yaml
.Some kind of header check should determine the type of unmarshal that is to be performed on the body.