Skip to content

Commit

Permalink
feat(api): OpenAPI spec update
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 1, 2024
1 parent fce499f commit 050c530
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion option/requestoption.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package option

import (
"fmt"
"log"
"net/http"
"net/url"
Expand Down Expand Up @@ -207,6 +208,6 @@ func WithEmail(value string) RequestOption {
func WithAPIToken(value string) RequestOption {
return func(r *requestconfig.RequestConfig) error {
r.APIToken = value
return r.Apply(WithHeader("authoriazaion", value))
return r.Apply(WithHeader("authorization", fmt.Sprintf("Bearer %s", r.APIToken)))
}
}

0 comments on commit 050c530

Please sign in to comment.