fako1024/httpc

Content-Type header might be duplicated for built-in encoders

Closed this issue · 0 comments

In case the caller sets the Content-Type Header manually while using one of the built-in encoders like EncodeJSON(), the headers gets duplicated instead of overwritten, leading to undefined behavior on some servers. This is a direct output of request.Headers from such a call:
Content-Type:[application/json application/json]