ogen
ogen copied to clipboard
Allow missing Content-Type header
I'm working with several APIs where the server does not send a Content-Type header, especially for error responses. This forces me to use a custom http.Client implementation that injects this header before the response is parsed. I'm wondering if it would make sense to do this by default when only one Content-Type is defined for a response?