Skip to content

Commit

Permalink
change validation check
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Jul 30, 2020
1 parent bc114f9 commit da57e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DragonFruit.Common.Data/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit da57e14

Please sign in to comment.