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

light-my-request

Package Overview
Dependencies
Maintainers
2
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

light-my-request - npm Package Compare versions

Comparing version 3.4.0 to 3.4.1

7

lib/response.js

@@ -16,3 +16,4 @@ 'use strict'

// This forces node@8 to always render the headers
this._headers = {}
this.setHeader('foo', 'bar'); this.removeHeader('foo')
this.assignSocket(getNullSocket())

@@ -52,4 +53,4 @@

// Should be .getHeaders() since node v7.7
this._lightMyRequest.headers = Object.assign({}, this._headers)
const _headers = this.getHeaders ? this.getHeaders() : this._headers
this._lightMyRequest.headers = Object.assign({}, _headers)

@@ -56,0 +57,0 @@ // Add raw headers

{
"name": "light-my-request",
"version": "3.4.0",
"version": "3.4.1",
"description": "Fake HTTP injection library",

@@ -5,0 +5,0 @@ "main": "index.js",

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