working commit
This commit is contained in:
+6
-8
@@ -16,10 +16,10 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"net/url"
|
||||
|
||||
"mstore/app/descr"
|
||||
"mstore/pkg/auxhttp"
|
||||
@@ -336,13 +336,11 @@ func (cli *Client) DeleteCollection(ctx context.Context, catalogURI string, isPa
|
||||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
if isPattern {
|
||||
values := url.Values{}
|
||||
values.Add("isPattern","true")
|
||||
catalogURI = catalogURI + "?" + values.Encode()
|
||||
}
|
||||
|
||||
|
||||
if isPattern {
|
||||
values := url.Values{}
|
||||
values.Add("isPattern", "true")
|
||||
catalogURI = catalogURI + "?" + values.Encode()
|
||||
}
|
||||
|
||||
req, err := http.NewRequestWithContext(ctx, http.MethodDelete, catalogURI, nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user