You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
fix: prerender and crawl pages whose content-type header carries a charset parameter (#16567)
The prerenderer compares `content-type` with `===`, so `text/html;
charset=utf-8` is not treated as HTML: the page is written without a
`.html` extension and its links are never crawled. `is_content_type`
already normalizes the header for this reason, from #7195 (strip
parameters) and GHSA-gv7g-x59x-wf8f (case-insensitive compare); the two
prerender checks predate both.
Reproduces #13612, closed as unreproducible, using the charset
workaround from #3184. The root `+server.js` error added in #15994 is
gated on the same value, so it can fire for an app that has none.
Co-authored-by: Nic Polumeyv <nicolas.polum@gmail.com>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
0 commit comments