Merge pull request #239 from davidosborn/master

Accept any content type if accept header is missing
This commit is contained in:
Tobe Osakwe 2019-07-08 20:21:31 -04:00 committed by GitHub
commit bf1ad66b56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {