Skip to content

Commit

Permalink
Update packages/astro/components/ViewTransitions.astro
Browse files Browse the repository at this point in the history
.* is longest possible run, but a dollar won't harm us :)

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
  • Loading branch information
martrapp and natemoo-re authored Sep 13, 2023
1 parent 819581d commit b02ac22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/components/ViewTransitions.astro
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const { fallback = 'animate' } = Astro.props as Props;
html,
redirected: res.redirected ? res.url : undefined,
// drop potential charset (+ other name/value pairs) as parser needs the mediaType
mediaType: res.headers.get('content-type')?.replace(/;.*/, ''),
mediaType: res.headers.get('content-type')?.replace(/;.*$/, ''),
};
} catch (err) {
return { ok: false };
Expand Down

0 comments on commit b02ac22

Please sign in to comment.