mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-14 11:05:52 +02:00
As mentioned in https://nodejs.org/docs/latest-v20.x/api/http.html#httpgeturl-options-callback if a request results in an error, you still need to consume the data, or call `response.resume()`, or your code will hang waiting for the request to close.