mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
9eb8743014
[CE/SP] Hotfix 4.1.6 GitOrigin-RevId: dc023665d5e0868913eff2104de1acaf7038cb9f
13 lines
470 B
Diff
13 lines
470 B
Diff
diff --git a/node_modules/finalhandler/index.js b/node_modules/finalhandler/index.js
|
|
index 5673507..40f4684 100644
|
|
--- a/node_modules/finalhandler/index.js
|
|
+++ b/node_modules/finalhandler/index.js
|
|
@@ -125,7 +125,7 @@ function finalhandler (req, res, options) {
|
|
// cannot actually respond
|
|
if (headersSent(res)) {
|
|
debug('cannot %d after headers sent', status)
|
|
- req.socket.destroy()
|
|
+ if (req.socket) req.socket.destroy()
|
|
return
|
|
}
|
|
|