Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby-source-drupal): Comment out http2-wrapper (#32045) #32053

Merged
merged 1 commit into from Jun 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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