chore(fetchReader): actually return the response of the reader
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user