From 25c6ded16f85b55101d5d0b3d3dee9edd9457746 Mon Sep 17 00:00:00 2001 From: David Osborn Date: Sun, 30 Jun 2019 23:15:20 -0300 Subject: [PATCH] Accept any content type if accept header is missing. --- lib/src/core/request_context.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/core/request_context.dart b/lib/src/core/request_context.dart index d25a5804..3a630edc 100644 --- a/lib/src/core/request_context.dart +++ b/lib/src/core/request_context.dart @@ -210,7 +210,7 @@ abstract class RequestContext { _acceptHeaderCache ??= headers.value('accept'); if (_acceptHeaderCache == null) { - return false; + return true; } else if (strict != true && _acceptHeaderCache.contains('*/*')) { return true; } else {