aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/assign_file_id.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-02-10 13:43:41 -0800
committerChris Lu <chris.lu@gmail.com>2020-02-10 13:43:41 -0800
commit0e1434d1c75b4e8e2536c64d169e89f392405653 (patch)
tree8fdc408ac2c8eb66ac9419af58945c49a42e24ce /weed/operation/assign_file_id.go
parent58f126fd27bb2f366f76f42223b93ba3b31a0bd8 (diff)
downloadseaweedfs-0e1434d1c75b4e8e2536c64d169e89f392405653.tar.xz
seaweedfs-0e1434d1c75b4e8e2536c64d169e89f392405653.zip
add http client for streaming uploadorigin/add_fasthttp_client
a bit lowver perofrmance.
Diffstat (limited to 'weed/operation/assign_file_id.go')
-rw-r--r--weed/operation/assign_file_id.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/operation/assign_file_id.go b/weed/operation/assign_file_id.go
index 3f3bb13e0..8db9e0367 100644
--- a/weed/operation/assign_file_id.go
+++ b/weed/operation/assign_file_id.go
@@ -95,7 +95,7 @@ func LookupJwt(master string, fileId string) security.EncodedJwt {
tokenStr := ""
lookupUrl := fmt.Sprintf("http://%s/dir/lookup?fileId=%s", master, fileId)
- err := util.Head(lookupUrl, func(header fasthttp.ResponseHeader) {
+ err := util.Head(lookupUrl, func(header *fasthttp.ResponseHeader) {
bearer := header.Peek("Authorization")
if len(bearer) > 7 && string(bytes.ToUpper(bearer[0:6])) == "BEARER" {
tokenStr = string(bearer[7:])