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"); }