@nxtedition/nxt-undici 6.2.5 → 6.2.7
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.
|
@@ -190,8 +190,15 @@ class Handler extends DecoratorHandler {
|
|
|
190
190
|
if (err) {
|
|
191
191
|
this.#onError(err)
|
|
192
192
|
} else {
|
|
193
|
+
assert(this.#aborted === false, 'unexpected aborted')
|
|
194
|
+
assert(this.#statusCode, 'unexpected statusCode')
|
|
195
|
+
assert(this.#headers, 'unexpected headers')
|
|
196
|
+
|
|
193
197
|
this.#onHeaders(this.#statusCode, this.#headers, noop)
|
|
194
|
-
|
|
198
|
+
|
|
199
|
+
if (!this.#aborted) {
|
|
200
|
+
super.onComplete(this.#trailers)
|
|
201
|
+
}
|
|
195
202
|
}
|
|
196
203
|
}
|
|
197
204
|
|