From 1cc4e2b08029f16cd099a189cf0038aa95a8a2be Mon Sep 17 00:00:00 2001 From: James Kruth Date: Mon, 25 Apr 2016 00:26:18 -0400 Subject: [PATCH] Upgrade request to 2.72.0 and fix affected test --- package.json | 2 +- test/spec/sparkpost.spec.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0a9c782..9009766 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,6 @@ "dependencies": { "json-pointer": "^0.5.0", "lodash": "^3.9.3", - "request": "2.42.0" + "request": "^2.72.0" } } diff --git a/test/spec/sparkpost.spec.js b/test/spec/sparkpost.spec.js index 3e10f59..0af72c6 100644 --- a/test/spec/sparkpost.spec.js +++ b/test/spec/sparkpost.spec.js @@ -196,6 +196,7 @@ describe('SparkPost Library', function() { , options = { method: 'GET' , uri: 'https://test.sparkpost.com/test' + , gzip: true }; zlib.gzip(TEST_MESSAGE+TEST_MESSAGE, function(err, gzipped) { @@ -203,7 +204,7 @@ describe('SparkPost Library', function() { compressedMsg = gzipped; gzipNock = nock('https://test.sparkpost.com', { reqheaders: { - 'accept-encoding': 'gzip' + 'accept-encoding': /gzip/ } }) .get('/test')