rsnext/packages/next/next-server
Steven 377aa4b650
Fix image format for Safari and old browsers (#18646)
Older versions of Safari (and other browsers) do not support webp format so we were incorrectly falling back to png.

This PR fixes #18509 so that we fallback to the original image format if a modern format like webp was not explicitly provided in the Accept header.

Tests were added to ensure that the Accept header for Safari, Firefox, and Chrome work properly.
2020-11-01 23:53:36 +00:00
..
lib Ensure custom routes handling with i18n (#18427) 2020-10-29 17:48:54 +00:00
server Fix image format for Safari and old browsers (#18646) 2020-11-01 23:53:36 +00:00