Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
sun128764 committed Nov 9, 2023
1 parent a138640 commit 18ccd50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OKP.Core/Interface/Acgnx/AcgnxAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,14 @@ public AcgnxAdapter(TorrentContent torrent, Template template, string siteType)

public override async Task<HttpResult> PingAsync()
{
HttpRequestMessage request = new(HttpMethod.Post, apiUrl);
request.Content = new MultipartFormDataContent()
HttpRequestMessage request = new(HttpMethod.Post, apiUrl)
{
Content = new MultipartFormDataContent()
{
{ new StringContent("upload"), "mod" },
{ new StringContent(template.Name??""), "uid" },
{ new StringContent(template.Cookie??""), "api_token" }
}
};
Log.Verbose("{Site} formdata content: {@MultipartFormDataContent}", site, request.Content);
var result = await httpClient.SendAsync(request);
Expand Down

0 comments on commit 18ccd50

Please sign in to comment.