light-my-request
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -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
47545