From 4fcf25bd4941c71ceec429f02761c7842e2bd602 Mon Sep 17 00:00:00 2001 From: Wonday Date: Mon, 13 May 2019 22:55:04 +0800 Subject: [PATCH] Fix encodeURI(source.uri) error when receiving encoded uri --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index dae8058f..3989d73d 100644 --- a/index.js +++ b/index.js @@ -252,7 +252,7 @@ export default class Pdf extends Component { }) .fetch( source.method ? source.method : 'GET', - encodeURI(source.uri), + encodeURI(decodeURI(source.uri)), source.headers ? source.headers : {}, source.body ? source.body : "" )