Skip to content

Commit

Permalink
nit: lowercase header key
Browse files Browse the repository at this point in the history
  • Loading branch information
dalechyn committed May 4, 2024
1 parent 701b99f commit 5715201
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frog-base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -492,7 +492,7 @@ export class FrogBase<
})()
: (() => {
return {
'Cache-Control': `max-age=${
'cache-control': `max-age=${
typeof initial.refreshing === 'number'
? initial.refreshing
: 0
Expand Down

0 comments on commit 5715201

Please sign in to comment.