mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
pass the necessary query params for remote NSSCanner (#14719)
fixes a regression from #14464
This commit is contained in:
parent
f630d7c3fa
commit
601a744159
@ -216,7 +216,7 @@ func (client *storageRESTClient) NSScanner(ctx context.Context, cache dataUsageC
|
|||||||
}()
|
}()
|
||||||
vals := make(url.Values)
|
vals := make(url.Values)
|
||||||
vals.Set(storageRESTScanMode, strconv.Itoa(int(scanMode)))
|
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)
|
defer xhttp.DrainBody(respBody)
|
||||||
pr.CloseWithError(err)
|
pr.CloseWithError(err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user