Accept any content type if accept header is missing.
This commit is contained in:
parent
f2b6ab69e2
commit
25c6ded16f
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