Skip to content

Commit 00faa68

Browse files
committed
Remove commented out code for setting Authorization header
1 parent 9247c8a commit 00faa68

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

headers/headers.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ func NewHeaderHandler(req *http.Request, log logger.Logger, apiHandler apihandle
3232
}
3333
}
3434

35-
// func (h *HeaderHandler) SetAuthorization(token string) {
36-
// // Ensure the token is prefixed with "Bearer " only once
37-
// if !strings.HasPrefix(token, "Bearer ") {
38-
// token = "Bearer " + token
39-
// }
40-
// h.req.Header.Set("Authorization", token)
41-
// }
42-
4335
// SetAuthorization sets the Authorization header for the request.
4436
func (h *HeaderHandler) SetAuthorization() {
4537
token := h.authTokenHandler.Token

0 commit comments

Comments
 (0)