@nxtedition/nxt-undici 2.0.12 → 2.0.13

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.
@@ -79,6 +79,8 @@ class Handler {
79
79
  origin,
80
80
  }
81
81
 
82
+ this.opts.logger?.debug({ location }, 'following redirect')
83
+
82
84
  // https://tools.ietf.org/html/rfc7231#section-6.4.4
83
85
  // In case of HTTP 303, always replace method to be either HEAD or GET
84
86
  if (statusCode === 303 && this.redirectOpts.method !== 'HEAD') {
@@ -128,6 +130,7 @@ class Handler {
128
130
  count: this.count,
129
131
  }),
130
132
  )
133
+ this.handler = null
131
134
  } else {
132
135
  return this.handler.onComplete(trailers)
133
136
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",