|
@@ -596,12 +596,11 @@ async function getChanges(req, res, next) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function isPrematureClose(err) {
|
|
function isPrematureClose(err) {
|
|
|
-
|
|
|
|
|
return (
|
|
return (
|
|
|
err instanceof Error &&
|
|
err instanceof Error &&
|
|
|
'code' in err &&
|
|
'code' in err &&
|
|
|
- (err.code === 'ERR_STREAM_PREMATURE_CLOSE' ||
|
|
|
|
|
- err.code === 'ERR_STREAM_UNABLE_TO_PIPE')
|
|
|
|
|
|
|
+ (err.code === 'ERR_STREAM_PREMATURE_CLOSE' ||
|
|
|
|
|
+ err.code === 'ERR_STREAM_UNABLE_TO_PIPE')
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|