Merge pull request #239 from davidosborn/master
Accept any content type if accept header is missing
This commit is contained in:
commit
bf1ad66b56
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ abstract class RequestContext<RawRequest> {
|
||||||
_acceptHeaderCache ??= headers.value('accept');
|
_acceptHeaderCache ??= headers.value('accept');
|
||||||
|
|
||||||
if (_acceptHeaderCache == null) {
|
if (_acceptHeaderCache == null) {
|
||||||
return false;
|
return true;
|
||||||
} else if (strict != true && _acceptHeaderCache.contains('*/*')) {
|
} else if (strict != true && _acceptHeaderCache.contains('*/*')) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue