Merge pull request #37 from foomo/sesamy-go-0.7.1

fix: set content type
This commit is contained in:
Kevin Franklin Kim 2024-12-10 08:50:45 +01:00 committed by GitHub
commit 778bb0f199
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {