mirror of
https://github.com/miniflux/v2.git
synced 2025-08-31 18:31:01 +00:00
fix(integration): define content encoding explicitly when sending article body to Readeck
This commit is contained in:
parent
36c25e7689
commit
2e856a6bf0
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ func (c *Client) CreateBookmark(entryURL, entryTitle string, entryContent string
|
||||||
|
|
||||||
contentBodyHeader, err := json.Marshal(&partContentHeader{
|
contentBodyHeader, err := json.Marshal(&partContentHeader{
|
||||||
Url: entryURL,
|
Url: entryURL,
|
||||||
ContentHeader: contentHeader{ContentType: "text/html"},
|
ContentHeader: contentHeader{ContentType: "text/html; charset=utf-8"},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("readeck: unable to encode request body (entry content header): %v", err)
|
return fmt.Errorf("readeck: unable to encode request body (entry content header): %v", err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue