@nxtedition/lib 21.3.2 → 21.3.4
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 -2
- package/package.json +1 -1
package/http.js
CHANGED
|
@@ -208,7 +208,7 @@ export async function request2(ctx, next) {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
} finally {
|
|
211
|
-
if (!res.
|
|
211
|
+
if (!res.writableEnded) {
|
|
212
212
|
res.destroy()
|
|
213
213
|
logger.debug('request destroyed')
|
|
214
214
|
}
|
|
@@ -329,7 +329,7 @@ export async function request(ctx, next) {
|
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
} finally {
|
|
332
|
-
if (!res.
|
|
332
|
+
if (!res.writableEnded) {
|
|
333
333
|
res.destroy()
|
|
334
334
|
logger.debug('request destroyed')
|
|
335
335
|
}
|