Skip to content

Commit 87f9b24

Browse files
author
Bart Veneman
committed
send http 200 on remote error
1 parent 688a62f commit 87f9b24

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

api/v2/extract-css.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ export default async (req, res) => {
1616
const result = await extractCss(url)
1717

1818
if ('error' in result) {
19-
res.statusCode = result.error.statusCode
2019
return res.json(result.error)
2120
}
2221

23-
res.statusCode = 200
2422
res.setHeader('Cache-Control', 'max-age=60')
2523

2624
if (req.headers.accept.includes('application/json')) {

0 commit comments

Comments
 (0)