mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
parent
5d039877a6
commit
87e01f681b
|
@ -17,7 +17,7 @@ import { flushChunks } from '../lib/dynamic'
|
||||||
import xssFilters from 'xss-filters'
|
import xssFilters from 'xss-filters'
|
||||||
|
|
||||||
export async function render (req, res, pathname, query, opts) {
|
export async function render (req, res, pathname, query, opts) {
|
||||||
const html = await renderToHTML(req, res, pathname, opts)
|
const html = await renderToHTML(req, res, pathname, query, opts)
|
||||||
sendHTML(req, res, html, req.method, opts)
|
sendHTML(req, res, html, req.method, opts)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue