Handle URLs that io.js can't handle
This commit is contained in:
parent
45b5b9d6fd
commit
1e346e7f9c
1 changed files with 4 additions and 1 deletions
|
|
@ -61,7 +61,10 @@ function downloadAllChapters() {
|
|||
|
||||
console.log(`Downloading ${currentChapter}`);
|
||||
|
||||
return request(currentChapter).redirects(10).then(function (response) {
|
||||
// Necessary for https://parahumans.wordpress.com/2011/10/11/interlude-3½-bonus/
|
||||
const escapedUrl = encodeURI(currentChapter);
|
||||
|
||||
return request(escapedUrl).redirects(10).then(function (response) {
|
||||
return response.text();
|
||||
})
|
||||
.then(function (contents) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue