Skip to content

Commit

Permalink
Fix encodeURI(source.uri) error when receiving encoded uri
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonday committed May 13, 2019
1 parent d153e70 commit 4fcf25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 : ""
)
Expand Down

0 comments on commit 4fcf25b

Please sign in to comment.