Skip to content

Commit

Permalink
Comment out early hints
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Sep 28, 2023
1 parent 32d5159 commit 6a60b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function startServer() {
return next()
} else {
const { body, statusCode, headers, earlyHints } = httpResponse
if (res.writeEarlyHints) res.writeEarlyHints({ link: earlyHints.map((e) => e.earlyHintLink) })
// if (res.writeEarlyHints) res.writeEarlyHints({ link: earlyHints.map((e) => e.earlyHintLink) })
headers.forEach(([name, value]) => res.setHeader(name, value))
res.status(statusCode)
if (!res.hasHeader('Content-Type')) res.setHeader('Content-Type', 'text/html');
Expand Down

0 comments on commit 6a60b72

Please sign in to comment.