Skip to content

Commit

Permalink
Removed explicit http2 headers for less verbosity (using default values)
Browse files Browse the repository at this point in the history
  • Loading branch information
lamweili committed Aug 3, 2022
1 parent 79ee87a commit cf9cc21
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -2313,10 +2313,7 @@ describe('session()', function(){
})
server.on('listening', function () {
var client = createHttp2Client(server.address().port)
// using ES5 as Node.js <=4.0.0 does not have Computed Property Names
var reqHeaders = {}
reqHeaders[http2.constants.HTTP2_HEADER_PATH] = '/'
var request = client.request(reqHeaders)
var request = client.request({})
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 cf9cc21

Please sign in to comment.