From 601a744159fda388eb6fe2fad315dc9c6017f94a Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sat, 9 Apr 2022 08:09:52 -0700 Subject: [PATCH] pass the necessary query params for remote NSSCanner (#14719) fixes a regression from #14464 --- cmd/storage-rest-client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/storage-rest-client.go b/cmd/storage-rest-client.go index fe2fc8645..0f965dee5 100644 --- a/cmd/storage-rest-client.go +++ b/cmd/storage-rest-client.go @@ -216,7 +216,7 @@ func (client *storageRESTClient) NSScanner(ctx context.Context, cache dataUsageC }() vals := make(url.Values) vals.Set(storageRESTScanMode, strconv.Itoa(int(scanMode))) - respBody, err := client.call(ctx, storageRESTMethodNSScanner, url.Values{}, pr, -1) + respBody, err := client.call(ctx, storageRESTMethodNSScanner, vals, pr, -1) defer xhttp.DrainBody(respBody) pr.CloseWithError(err) if err != nil {