Accept any content type if accept header is missing.

This commit is contained in:
David Osborn 2019-06-30 23:15:20 -03:00
parent f2b6ab69e2
commit 25c6ded16f

View file

@ -210,7 +210,7 @@ abstract class RequestContext<RawRequest> {
_acceptHeaderCache ??= headers.value('accept');
if (_acceptHeaderCache == null) {
return false;
return true;
} else if (strict != true && _acceptHeaderCache.contains('*/*')) {
return true;
} else {