We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5dc243 commit eb8d8a8Copy full SHA for eb8d8a8
api/v2/_extract-css-basic.js
@@ -35,7 +35,9 @@ function getImportUrls(css) {
35
36
export async function getCssFile(url) {
37
try {
38
- var { body } = await got(url)
+ var { body } = await got(url, {
39
+ timeout: 8000
40
+ })
41
return body
42
} catch (error) {
43
console.error(`CSS not found at ${url} (HTTP ${error.response.statusCode})`)
@@ -97,7 +99,9 @@ export async function extractCss(url) {
97
99
let headers = {}
98
100
101
- var response = await got(url)
102
+ var response = await got(url, {
103
104
105
body = response.body
106
headers = response.headers
107
0 commit comments