@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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "7.3.17",
3
+ "version": "7.3.18",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",