Skip to content

Commit

Permalink
Merge pull request #18 from aspriddell/validation-update
Browse files Browse the repository at this point in the history
change validation check
  • Loading branch information
aspriddell authored Jul 30, 2020
2 parents bc114f9 + da57e14 commit f3aaec4
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 f3aaec4

Please sign in to comment.