Skip to content

Commit 27066a2

Browse files
authored
Make reading accept header flexible for older Safari browsers (#3329)
1 parent 264e133 commit 27066a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hydrogen/src/createRequestHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function createRequestHandler<Context = unknown>({
114114
const fetchDest = request.headers.get('sec-fetch-dest');
115115
if (
116116
(fetchDest && fetchDest === 'document') ||
117-
request.headers.get('accept') === 'text/html'
117+
request.headers.get('accept')?.includes('text/html')
118118
) {
119119
appendServerTimingHeader(response, {[HYDROGEN_SFAPI_PROXY_KEY]: '1'});
120120
}

0 commit comments

Comments
 (0)