@nxtedition/lib 23.11.1 → 23.11.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 +3 -1
- package/package.json +1 -1
package/http.js
CHANGED
|
@@ -334,7 +334,9 @@ export async function requestMiddleware(ctx, next) {
|
|
|
334
334
|
} finally {
|
|
335
335
|
pendingSet.delete(ctx)
|
|
336
336
|
|
|
337
|
-
if (
|
|
337
|
+
if (res.writableEnded || res.destroyed || res.stream?.destroyed) {
|
|
338
|
+
// Do nothing..
|
|
339
|
+
} else {
|
|
338
340
|
res.destroy()
|
|
339
341
|
ctx.logger?.warn({ req }, 'request destroyed')
|
|
340
342
|
}
|