Skip to content

Commit

Permalink
fix(gatsby-source-drupal): Comment out http2-wrapper (#32045) (#32053)
Browse files Browse the repository at this point in the history
Until we can see if szmarczak/http2-wrapper#73 can get resolved.

Fixes #32043

(cherry picked from commit b5f93e9)

Co-authored-by: Kyle Mathews <mathews.kyle@gmail.com>
  • Loading branch information
GatsbyJS Bot and KyleAMathews committed Jun 23, 2021
1 parent f1cc7ff commit f495352
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/gatsby-source-drupal/src/gatsby-node.js
Expand Up @@ -2,7 +2,7 @@ const got = require(`got`)
const _ = require(`lodash`)
const urlJoin = require(`url-join`)
import HttpAgent from "agentkeepalive"
const http2wrapper = require(`http2-wrapper`)
// const http2wrapper = require(`http2-wrapper`)

const { HttpsAgent } = HttpAgent

Expand All @@ -19,15 +19,15 @@ const { handleReferences, handleWebhookUpdate } = require(`./utils`)
const agent = {
http: new HttpAgent(),
https: new HttpsAgent(),
http2: new http2wrapper.Agent(),
// http2: new http2wrapper.Agent(),
}

async function worker([url, options]) {
return got(url, {
agent,
cache: false,
request: http2wrapper.auto,
http2: true,
// request: http2wrapper.auto,
// http2: true,
...options,
})
}
Expand Down
1 change: 0 additions & 1 deletion packages/gatsby-source-drupal/src/utils.js
@@ -1,5 +1,4 @@
const _ = require(`lodash`)
const axios = require(`axios`)

const {
nodeFromData,
Expand Down

0 comments on commit f495352

Please sign in to comment.