Skip to content

Commit

Permalink
Upgrade request to 2.72.0 and fix affected test
Browse files Browse the repository at this point in the history
  • Loading branch information
artlogic committed Apr 25, 2016
1 parent 082be2e commit 1cc4e2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"dependencies": {
"json-pointer": "^0.5.0",
"lodash": "^3.9.3",
"request": "2.42.0"
"request": "^2.72.0"
}
}
3 changes: 2 additions & 1 deletion test/spec/sparkpost.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,15 @@ describe('SparkPost Library', function() {
, options = {
method: 'GET'
, uri: 'https://test.sparkpost.com/test'
, gzip: true
};

zlib.gzip(TEST_MESSAGE+TEST_MESSAGE, function(err, gzipped) {
expect(err).to.be.null;
compressedMsg = gzipped;
gzipNock = nock('https://test.sparkpost.com', {
reqheaders: {
'accept-encoding': 'gzip'
'accept-encoding': /gzip/
}
})
.get('/test')
Expand Down

0 comments on commit 1cc4e2b

Please sign in to comment.