@nxtedition/nxt-undici 7.3.17 → 7.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -202,7 +202,7 @@ class Handler extends DecoratorHandler {
|
|
|
202
202
|
this.#trailers = trailers
|
|
203
203
|
|
|
204
204
|
if (this.#statusCode < 400) {
|
|
205
|
-
if (this.#end != null && this.#pos !== this.#end) {
|
|
205
|
+
if (this.#end != null && this.#pos !== this.#end && this.#opts.method !== 'HEAD') {
|
|
206
206
|
this.#maybeError(new Error('Response body length mismatch with Content-Range'))
|
|
207
207
|
return
|
|
208
208
|
}
|