Skip to content

Commit

Permalink
refactor: remove headers from baserequest
Browse files Browse the repository at this point in the history
- fixes: #3217
  • Loading branch information
frrist committed Jan 26, 2024
1 parent 032eec4 commit 180d0f6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/publicapi/apimodels/base_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import (

// BaseRequest is the base request used for all requests
type BaseRequest struct {
Namespace string `query:"namespace"`
Headers map[string]string `query:"-"`
Namespace string `query:"namespace"`

// A good place to define other fields that are common to all requests,
// such as auth tokens
Expand All @@ -21,10 +20,6 @@ func (o *BaseRequest) ToHTTPRequest() *HTTPRequest {
r.Params.Set("namespace", o.Namespace)
}

for k, v := range o.Headers {
r.Header.Set(k, v)
}

return r
}

Expand Down

0 comments on commit 180d0f6

Please sign in to comment.