Intuitively, I would expect these results to be the same.
RFC 7231 doesn't appear to weigh in explicitly on this issue, but does seem to imply that the two should be treated as equivalent (emphasis added):
The asterisk "" character is used to group media types into ranges, with "/*" indicating all media types ...
A request without any Accept header field implies that the user agent will accept any media type in response.
Although maybe there are valid reasons not to consider them the same.
I'm not 100% sure this is a bug, but intuitively, it doesn't make sense to me.
Consider this code:
And it's respective output:
Intuitively, I would expect these results to be the same.
RFC 7231 doesn't appear to weigh in explicitly on this issue, but does seem to imply that the two should be treated as equivalent (emphasis added):
Although maybe there are valid reasons not to consider them the same.