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')