chore(fetchReader): actually return the response of the reader

This commit is contained in:
blam
2020-10-21 10:09:36 +02:00
parent 3238651f8a
commit 3825cb8d04
@@ -31,7 +31,7 @@ export class FetchUrlReader implements UrlReader {
}
if (response.ok) {
return Buffer.from('');
return Buffer.from(await response.text());
}
const message = `could not read ${url}, ${response.status} ${response.statusText}`;