@nxtedition/lib 20.3.1 → 20.3.2
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 +2 -7
- package/package.json +1 -1
package/http.js
CHANGED
|
@@ -170,7 +170,6 @@ export class ServerResponse extends http.ServerResponse {
|
|
|
170
170
|
headers: -1,
|
|
171
171
|
data: -1,
|
|
172
172
|
complete: -1,
|
|
173
|
-
error: -1,
|
|
174
173
|
}
|
|
175
174
|
|
|
176
175
|
get timing() {
|
|
@@ -216,16 +215,12 @@ export class ServerResponse extends http.ServerResponse {
|
|
|
216
215
|
this.#timing.headers = this.#timing.data
|
|
217
216
|
}
|
|
218
217
|
|
|
219
|
-
if (this.#timing.complete === -1) {
|
|
220
|
-
this.#timing.complete = performance.now() - this.#created
|
|
221
|
-
}
|
|
222
|
-
|
|
223
218
|
return super.end(chunk, encoding, callback)
|
|
224
219
|
}
|
|
225
220
|
|
|
226
221
|
destroy(err) {
|
|
227
|
-
if (
|
|
228
|
-
this.#timing.
|
|
222
|
+
if (this.#timing.complete === -1) {
|
|
223
|
+
this.#timing.complete = performance.now() - this.#created
|
|
229
224
|
}
|
|
230
225
|
|
|
231
226
|
return super.destroy(err)
|