Skip to content

Commit

Permalink
Fixed connect string in standalone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishamm committed Sep 18, 2024
1 parent 717b064 commit 6ddc0c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DuetHttpClient/Connector/PollConnector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static async Task<PollConnector> ConnectAsync(Uri baseUri, DuetHttpOption
uint? sessionKey = null;
using (HttpClient client = new() { Timeout = options.Timeout })
{
using HttpResponseMessage response = await client.GetAsync(new Uri(baseUri, "rr_connect?password={HttpUtility.UrlPathEncode(password)}&time={DateTime.Now:s}"), cancellationToken);
using HttpResponseMessage response = await client.GetAsync(new Uri(baseUri, $"rr_connect?password={HttpUtility.UrlPathEncode(options.Password)}&time={DateTime.Now:s}"), cancellationToken);
response.EnsureSuccessStatusCode();

#if NET6_0_OR_GREATER
Expand Down

0 comments on commit 6ddc0c8

Please sign in to comment.