Skip to content

Commit fae578c

Browse files
authored
Merge pull request #27 from kernel/fix/new-from-archive-query-params
fix: send query params for NewFromArchive
2 parents a63ff05 + a8c45a6 commit fae578c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

volume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (r *VolumeService) NewFromArchive(ctx context.Context, body io.Reader, para
7777
opts = slices.Concat(r.Options, opts)
7878
opts = append([]option.RequestOption{option.WithRequestBody("application/gzip", body)}, opts...)
7979
path := "volumes/from-archive"
80-
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, nil, &res, opts...)
80+
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, params, &res, opts...)
8181
return
8282
}
8383

0 commit comments

Comments
 (0)