Skip to content

Commit 5cb3c58

Browse files
committed
Merge pull request #142 from artlogic/ISSUE-141
Upgrade request to 2.72.0 and fix affected test
2 parents 082be2e + 1cc4e2b commit 5cb3c58

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
"dependencies": {
4343
"json-pointer": "^0.5.0",
4444
"lodash": "^3.9.3",
45-
"request": "2.42.0"
45+
"request": "^2.72.0"
4646
}
4747
}

test/spec/sparkpost.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,15 @@ describe('SparkPost Library', function() {
196196
, options = {
197197
method: 'GET'
198198
, uri: 'https://test.sparkpost.com/test'
199+
, gzip: true
199200
};
200201

201202
zlib.gzip(TEST_MESSAGE+TEST_MESSAGE, function(err, gzipped) {
202203
expect(err).to.be.null;
203204
compressedMsg = gzipped;
204205
gzipNock = nock('https://test.sparkpost.com', {
205206
reqheaders: {
206-
'accept-encoding': 'gzip'
207+
'accept-encoding': /gzip/
207208
}
208209
})
209210
.get('/test')

0 commit comments

Comments
 (0)