Skip to content

Commit

Permalink
Merge pull request #37 from foomo/sesamy-go-0.7.1
Browse files Browse the repository at this point in the history
fix: set content type
  • Loading branch information
franklinkim authored Dec 10, 2024
2 parents d5a8496 + f5d0d00 commit 778bb0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/client/mpv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func (c *MPv2) SendRaw(r *http.Request, payload *mpv2.Payload[any]) error {

// TODO valiate: copy headers
req.Header = r.Header.Clone()
req.Header.Set("Content-Type", "application/json")

// forward cookies
for _, cookie := range c.cookies {
Expand Down

0 comments on commit 778bb0f

Please sign in to comment.