Skip to content

Commit 64823f4

Browse files
fix: POST commands to avoid cache issues
1 parent 57f1939 commit 64823f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IpfsClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ public async Task<string> DoCommandAsync(string command, CancellationToken cance
259259
{
260260
var url = BuildCommand(command, arg, options);
261261
if (log.IsDebugEnabled)
262-
log.Debug("GET " + url.ToString());
263-
using (var response = await Api().GetAsync(url, HttpCompletionOption.ResponseHeadersRead, cancel))
262+
log.Debug("POST " + url.ToString());
263+
using (var response = await Api().PostAsync(url, null, cancel))
264264
{
265265
await ThrowOnErrorAsync(response);
266266
var body = await response.Content.ReadAsStringAsync();

0 commit comments

Comments
 (0)