@nxtedition/lib 21.8.4 → 21.8.5
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.
- package/http.js +3 -4
- package/package.json +1 -1
package/http.js
CHANGED
|
@@ -414,7 +414,7 @@ export class ServerResponse extends http.ServerResponse {
|
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
if (this.#timing.headers === -1) {
|
|
417
|
-
this.#timing.headers = this.#timing.
|
|
417
|
+
this.#timing.headers = this.#timing.end
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
|
|
@@ -484,7 +484,7 @@ export class Http2ServerResponse extends http2.Http2ServerResponse {
|
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
if (this.#timing.headers === -1) {
|
|
487
|
-
this.#timing.headers = this.#timing.
|
|
487
|
+
this.#timing.headers = this.#timing.end
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
|
|
@@ -494,8 +494,7 @@ export class Http2ServerResponse extends http2.Http2ServerResponse {
|
|
|
494
494
|
destroy(err) {
|
|
495
495
|
if (!this.destroyed) {
|
|
496
496
|
if (this.#timing.end === -1) {
|
|
497
|
-
this.#timing.end = performance.now() - this.#
|
|
498
|
-
this.#now += this.#timing.end
|
|
497
|
+
this.#timing.end = performance.now() - this.#created
|
|
499
498
|
}
|
|
500
499
|
}
|
|
501
500
|
|