Handle URLs that io.js can't handle

This commit is contained in:
Domenic Denicola 2015-05-06 01:22:04 +02:00
commit 1e346e7f9c

View file

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