You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
content-type is set by default even for empty body #31
While this is helpful, this can have negative consequences, and we cannot disable the behavior. In cases where there is no body, or body is set and empty, the content-type is set. In these cases, content-type should not be set at all. It must be set to something to avoid the behavior.
So I'm opening this issue to start discussion. Is it possible that:
Net::HTTP does not supply default content type for empty body?
Is it ok to introduce an option on request to turn off this behavior?
Net::HTTP default content type is application/octet-stream instead of application/x-www-form-urlencoded
Activity
damienb-opt commentedon Dec 3, 2024
That one was hard to track on our side, had to tcpdump to get a clue.