pass the necessary query params for remote NSSCanner (#14719)

fixes a regression from #14464
This commit is contained in:
Harshavardhana 2022-04-09 08:09:52 -07:00 committed by GitHub
parent f630d7c3fa
commit 601a744159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {