From 5715201a1e20d01b9a115704eb46f4fa06ea9761 Mon Sep 17 00:00:00 2001 From: hotwater Date: Sun, 5 May 2024 02:14:06 +0300 Subject: [PATCH] nit: lowercase header key --- src/frog-base.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frog-base.tsx b/src/frog-base.tsx index ddeff2e5..f05f557f 100644 --- a/src/frog-base.tsx +++ b/src/frog-base.tsx @@ -481,9 +481,9 @@ export class FrogBase< ? defaultHeaders ? (() => { const headers_ = new Headers(defaultHeaders).toJSON() - if (headers_['Cache-Control']) return headers_ + if (headers_['cache-control']) return headers_ - headers_['Cache-Control'] = `max-age=${ + headers_['cache-control'] = `max-age=${ typeof initial.refreshing === 'number' ? initial.refreshing : 0 @@ -492,7 +492,7 @@ export class FrogBase< })() : (() => { return { - 'Cache-Control': `max-age=${ + 'cache-control': `max-age=${ typeof initial.refreshing === 'number' ? initial.refreshing : 0