Skip to content

Commit

Permalink
check to make sure we are using valid http2 lib
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarba committed Aug 31, 2017
1 parent 223a12e commit 6fc9081
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/http2-client.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const { URL } = require('url')
const http2 = require('http2')
const Promise = require('bluebird')
const http2 = require('http2')

// Check to make sure this is the native http2
if (!http2.constants || !http2.constants.NGHTTP2_SESSION_CLIENT) throw new Error('Invalid http2 library')

const {
HTTP2_HEADER_METHOD,
Expand Down

0 comments on commit 6fc9081

Please sign in to comment.