avoid util package depends on security package

This commit is contained in:
Chris Lu
2019-02-16 12:23:35 -08:00
parent 31aa60ce05
commit 98a03b38e5
4 changed files with 4 additions and 6 deletions

View File

@@ -12,8 +12,6 @@ import (
"net/url"
"strings"
"time"
"github.com/chrislusf/seaweedfs/weed/security"
)
var (
@@ -97,7 +95,7 @@ func Head(url string) (http.Header, error) {
return r.Header, nil
}
func Delete(url string, jwt security.EncodedJwt) error {
func Delete(url string, jwt string) error {
req, err := http.NewRequest("DELETE", url, nil)
if jwt != "" {
req.Header.Set("Authorization", "BEARER "+string(jwt))