fix: set content type

This commit is contained in:
Kevin Franklin Kim 2024-12-10 08:45:46 +01:00
parent d5a849611e
commit f5d0d00b78
No known key found for this signature in database

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 {