@fastify/reply-from
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -115,2 +115,6 @@ 'use strict' | ||
req.on('response', res => { | ||
// remove timeout for sse connections | ||
if (res.headers['content-type'] === 'text/event-stream') { | ||
req.setTimeout(0) | ||
} | ||
done(null, { statusCode: res.statusCode, headers: res.headers, stream: res }) | ||
@@ -214,2 +218,8 @@ }) | ||
req.on('response', headers => { | ||
// remove timeout for sse connections | ||
if (headers['content-type'] === 'text/event-stream') { | ||
req.setTimeout(0) | ||
http2Client.setTimeout(0) | ||
} | ||
const statusCode = headers[':status'] | ||
@@ -255,3 +265,3 @@ done(null, { statusCode, headers, stream: req }) | ||
if (!http2Opts.sessionTimeout) { | ||
http2Opts.sessionTimeout = opts.sessionTimeout || 6000 | ||
http2Opts.sessionTimeout = opts.sessionTimeout || 60000 | ||
} | ||
@@ -258,0 +268,0 @@ if (!http2Opts.requestTimeout) { |
{ | ||
"name": "@fastify/reply-from", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "forward your HTTP request to another server, for fastify", | ||
@@ -49,3 +49,3 @@ "main": "index.js", | ||
"tap": "^16.2.0", | ||
"tsd": "^0.25.0" | ||
"tsd": "^0.26.0" | ||
}, | ||
@@ -52,0 +52,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171136
5069
70