Преглед изворни кода

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

Frédéric Guillot пре 2 година
родитељ
комит
2e856a6bf0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      internal/integration/readeck/readeck.go

+ 1 - 1
internal/integration/readeck/readeck.go

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