diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-11-05 13:28:13 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-11-05 13:28:13 -0500 |
| commit | a94f07ab844c074f4fcd931e3aacbbd888ca87aa (patch) | |
| tree | 6de8a7834af99dae47ebef97d08d429da83fa816 /src/slskd/Network/NetworkClient.cs | |
| parent | f92ef3c7a13eeb65ded5a26fda2f261f120eb88e (diff) | |
| download | slskd-a94f07ab844c074f4fcd931e3aacbbd888ca87aa.tar.gz | |
update share state when hosts change
Diffstat (limited to 'src/slskd/Network/NetworkClient.cs')
| -rw-r--r-- | src/slskd/Network/NetworkClient.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/slskd/Network/NetworkClient.cs b/src/slskd/Network/NetworkClient.cs index c3ae9365..bf79a790 100644 --- a/src/slskd/Network/NetworkClient.cs +++ b/src/slskd/Network/NetworkClient.cs @@ -196,12 +196,12 @@ namespace slskd.Network using var request = new HttpRequestMessage(HttpMethod.Post, $"api/v0/network/shares/{token}"); using var content = new MultipartFormDataContent - { - { new StringContent(OptionsMonitor.CurrentValue.InstanceName), "name" }, - { new StringContent(ComputeCredential(token)), "credential" }, - { new StringContent(Shares.LocalHost.Shares.ToJson()), "shares" }, - { new StreamContent(stream), "database", "shares" }, - }; + { + { new StringContent(OptionsMonitor.CurrentValue.InstanceName), "name" }, + { new StringContent(ComputeCredential(token)), "credential" }, + { new StringContent(Shares.LocalHost.Shares.ToJson()), "shares" }, + { new StreamContent(stream), "database", "shares" }, + }; request.Headers.Add("X-API-Key", OptionsMonitor.CurrentValue.Network.Controller.ApiKey); request.Content = content; |
