1
0
Fork 0

fix(integration): define content encoding explicitly when sending article body to Readeck

This commit is contained in:
Frédéric Guillot 2024-07-13 12:43:05 -07:00
parent 36c25e7689
commit 2e856a6bf0

View file

@ -91,7 +91,7 @@ func (c *Client) CreateBookmark(entryURL, entryTitle string, entryContent string
contentBodyHeader, err := json.Marshal(&partContentHeader{
Url: entryURL,
ContentHeader: contentHeader{ContentType: "text/html"},
ContentHeader: contentHeader{ContentType: "text/html; charset=utf-8"},
})
if err != nil {
return fmt.Errorf("readeck: unable to encode request body (entry content header): %v", err)