Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
weili committed Aug 2, 2022
1 parent b908af0 commit 4d77342
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/compression.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ describe('compression()', function () {
})
server.on('listening', function () {
var client = createHttp2Client(server.address().port)
var request = client.request({
[http2.constants.HTTP2_HEADER_ACCEPT_ENCODING]: 'gzip'
})
var reqHeaders = {};
reqHeaders[http2.constants.HTTP2_HEADER_ACCEPT_ENCODING] = 'gzip'
var request = client.request(reqHeaders)
request.on('response', function (headers) {
assert.strictEqual(headers[http2.constants.HTTP2_HEADER_STATUS], 200)
assert.strictEqual(headers[http2.constants.HTTP2_HEADER_CONTENT_TYPE], 'text/plain')
Expand Down

0 comments on commit 4d77342

Please sign in to comment.