mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Make sure internal url always has 200 status code. (#2299)
Even the user set it to something else via custom server api.
This commit is contained in:
parent
7c97cdc7fb
commit
fe77397f26
|
@ -61,6 +61,7 @@ export default class Server {
|
|||
parsedUrl.query = parseQs(parsedUrl.query)
|
||||
}
|
||||
|
||||
res.statusCode = 200
|
||||
return this.run(req, res, parsedUrl)
|
||||
.catch((err) => {
|
||||
if (!this.quiet) console.error(err)
|
||||
|
|
Loading…
Reference in a new issue