Fix various encoding/decoding issues

This commit is contained in:
Will Boyd
2020-12-23 13:36:58 -05:00
parent 9ce92280f9
commit ebbb275d32
2 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ async function loadImageFilePromise(imageUrl) {
let buffer;
try {
buffer = await requestPromiseNative.get({
url: imageUrl,
url: encodeURI(imageUrl),
encoding: null, // preserves binary encoding
headers: {
'User-Agent': 'wordpress-export-to-markdown'