Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fastify/reply-from

Package Overview
Dependencies
Maintainers
19
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastify/reply-from - npm Package Compare versions

Comparing version 9.0.0 to 9.0.1

test/async-route-handler.test.js

12

lib/request.js

@@ -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) {

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc