Skip to content

Commit

Permalink
fix read auth ticket (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 authored Dec 5, 2023
1 parent 2a794a0 commit 223ba2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zboxcore/sdk/download_reqeust_header.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package sdk

import (
"encoding/base64"
"fmt"
"net/http"
"strconv"
Expand Down Expand Up @@ -38,7 +39,8 @@ func (h *DownloadRequestHeader) ToHeader(req *http.Request) {
}

if h.AuthToken != nil {
req.Header.Set("X-Auth-Token", string(h.AuthToken))
token := base64.StdEncoding.EncodeToString(h.AuthToken)
req.Header.Set("X-Auth-Token", token)
}

if h.DownloadMode != "" {
Expand Down

0 comments on commit 223ba2c

Please sign in to comment.