Skip to content

Commit

Permalink
Исправляет авторизацию
Browse files Browse the repository at this point in the history
  • Loading branch information
inyutin-maxim committed Sep 26, 2023
1 parent c4fc067 commit 9e3b731
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public async Task<AuthorizationFormResult> ExecuteAsync(Uri url, IApiAuthParams

await FillFormFieldsAsync(form, authParams, token);
token.ThrowIfCancellationRequested();
var response = await _restClient.PostAsync(new(form.Action), form.Fields, Encoding.UTF8, form.Headers, token)

var response = await _restClient
.PostAsync(new(Uri.UnescapeDataString(form.Action)), form.Fields, Encoding.UTF8, form.Headers, token)
.ConfigureAwait(false);

if (!response.IsSuccess)
Expand Down

0 comments on commit 9e3b731

Please sign in to comment.