diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-02-16 12:23:35 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-02-16 12:23:35 -0800 |
| commit | 98a03b38e5798fb75fe35174da297b3528b9750e (patch) | |
| tree | 50d61df4c498cb7888a7f8854cc125b1d9125cdd /weed/util/http_util.go | |
| parent | 31aa60ce051b6da6617a3b733160015f2ddba693 (diff) | |
| download | seaweedfs-98a03b38e5798fb75fe35174da297b3528b9750e.tar.xz seaweedfs-98a03b38e5798fb75fe35174da297b3528b9750e.zip | |
avoid util package depends on security package
Diffstat (limited to 'weed/util/http_util.go')
| -rw-r--r-- | weed/util/http_util.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/weed/util/http_util.go b/weed/util/http_util.go index 21e0a678d..a465a7b7f 100644 --- a/weed/util/http_util.go +++ b/weed/util/http_util.go @@ -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)) |
