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
I would like to make a HTTP request without the Accept header which seems to be baked in here. default_headers only adds headers but cannot remove the Accept already inserting and the header/s method would only its value. Is there a way to remove the Accept header?
As far as I can see, it shouldn't be controversial to at least allow not having an Accept header, from an older RFC:
If no Accept header field is present, then it is assumed that the
client accepts all media types. If an Accept header field is present,
and if the server cannot send a response which is acceptable
according to the combined Accept field value, then the server SHOULD
send a 406 (not acceptable) response.
The newer RFC does not seem to make it mandatory either. I see that this issue came up previously but it's not clear to me why there was no follow up. If there's no strong reason against it, could this be implemented or a contributing PR in this sense be considered?
Thank you.
The text was updated successfully, but these errors were encountered:
Hi,
I would like to make a HTTP request without the
Accept
header which seems to be baked in here. default_headers only adds headers but cannot remove theAccept
already inserting and theheader/s
method would only its value. Is there a way to remove theAccept
header?As far as I can see, it shouldn't be controversial to at least allow not having an
Accept
header, from an older RFC:The newer RFC does not seem to make it mandatory either. I see that this issue came up previously but it's not clear to me why there was no follow up. If there's no strong reason against it, could this be implemented or a contributing PR in this sense be considered?
Thank you.
The text was updated successfully, but these errors were encountered: