From da57e1461e916e05fd53c1edd57a64f1036dabc5 Mon Sep 17 00:00:00 2001 From: Albie Date: Thu, 30 Jul 2020 11:01:46 +0100 Subject: [PATCH] change validation check --- DragonFruit.Common.Data/ApiClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DragonFruit.Common.Data/ApiClient.cs b/DragonFruit.Common.Data/ApiClient.cs index 68973f5..9d185b8 100644 --- a/DragonFruit.Common.Data/ApiClient.cs +++ b/DragonFruit.Common.Data/ApiClient.cs @@ -360,7 +360,7 @@ protected virtual void ValidateRequest(ApiRequest requestData) throw new NullRequestException(); } - if (requestData.RequireAuth && (!requestData.Headers.IsValueCreated || string.IsNullOrEmpty(Authorization))) + if (requestData.RequireAuth && (!requestData.Headers.IsValueCreated && string.IsNullOrEmpty(Authorization))) { throw new ClientValidationException("Authorization data expected, but not found"); }