You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think sharing more code between fetch and the rest of undici would be nice, especially now that fetch is supported in every version of node that undici does.
The text was updated successfully, but these errors were encountered:
It is only used within RetryHandler so it should be safe to replace it; the only thing that seems missing is that it does not consider the total byte size of the response if provided. We can infer it as the sizeEnd and fallback to content-length if missed
This:
undici/lib/core/util.js
Lines 461 to 471 in af9aaea
can now be replaced with:
undici/lib/fetch/util.js
Line 1030 in af9aaea
I think sharing more code between fetch and the rest of undici would be nice, especially now that fetch is supported in every version of node that undici does.
The text was updated successfully, but these errors were encountered: