Closed lem-onade closed 2 years ago
Q: am I correct in assuming that an undefined Accept
header === Accept: */*
?
from https://www.rfc-editor.org/rfc/rfc7231#section-5.3.2
A request without any Accept header field implies that the user agent will accept any media type in response.
So it seems my assumption was correct
When no
Accept
header is set, a request handled by theHttpHandlerStaticAssetService
returns 415 with bodyNo accept header found
.I think not specifying the
Accept
header should equal anAccept
header with value*/*
(the latter does work).example failing request (make sure no accept header is set automatically):
If the
Accept
header is not set, return whatever media type the static asset has, like would be done for anAccept: */*
header. Do not set the incomingAccept
header to*/*
, as that would be incorrect. Just treat it in the same way.┆Issue is synchronized with this Wrike task by Unito