Skip to content

Commit b5f93e9

Browse files
authored
fix(gatsby-source-drupal): Comment out http2-wrapper (#32045)
Until we can see if szmarczak/http2-wrapper#73 can get resolved. Fixes #32043
1 parent 29211f0 commit b5f93e9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/gatsby-source-drupal/src/gatsby-node.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const got = require(`got`)
22
const _ = require(`lodash`)
33
const urlJoin = require(`url-join`)
44
import HttpAgent from "agentkeepalive"
5-
const http2wrapper = require(`http2-wrapper`)
5+
// const http2wrapper = require(`http2-wrapper`)
66

77
const { HttpsAgent } = HttpAgent
88

@@ -19,15 +19,15 @@ const { handleReferences, handleWebhookUpdate } = require(`./utils`)
1919
const agent = {
2020
http: new HttpAgent(),
2121
https: new HttpsAgent(),
22-
http2: new http2wrapper.Agent(),
22+
// http2: new http2wrapper.Agent(),
2323
}
2424

2525
async function worker([url, options]) {
2626
return got(url, {
2727
agent,
2828
cache: false,
29-
request: http2wrapper.auto,
30-
http2: true,
29+
// request: http2wrapper.auto,
30+
// http2: true,
3131
...options,
3232
})
3333
}

packages/gatsby-source-drupal/src/utils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const _ = require(`lodash`)
2-
const axios = require(`axios`)
32

43
const {
54
nodeFromData,

0 commit comments

Comments
 (0)