Skip to content

Commit d10212a

Browse files
committed
cache: change normaliseHeaders to normalizeHeaders
1 parent 6ca7da0 commit d10212a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/interceptor/cache.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const util = require('../core/util')
66
const CacheHandler = require('../handler/cache-handler')
77
const MemoryCacheStore = require('../cache/memory-cache-store')
88
const CacheRevalidationHandler = require('../handler/cache-revalidation-handler')
9-
const { assertCacheStore, assertCacheMethods, makeCacheKey, normaliseHeaders, parseCacheControlHeader } = require('../util/cache.js')
9+
const { assertCacheStore, assertCacheMethods, makeCacheKey, normalizeHeaders, parseCacheControlHeader } = require('../util/cache.js')
1010
const { AbortError } = require('../core/errors.js')
1111

1212
/**
@@ -326,7 +326,7 @@ module.exports = (opts = {}) => {
326326

327327
opts = {
328328
...opts,
329-
headers: normaliseHeaders(opts)
329+
headers: normalizeHeaders(opts)
330330
}
331331

332332
const reqCacheControl = opts.headers?.['cache-control']

lib/util/cache.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function makeCacheKey (opts) {
3434
* @param {Record<string, string[] | string>}
3535
* @returns {Record<string, string[] | string>}
3636
*/
37-
function normaliseHeaders (opts) {
37+
function normalizeHeaders (opts) {
3838
let headers
3939
if (opts.headers == null) {
4040
headers = {}
@@ -367,7 +367,7 @@ function assertCacheMethods (methods, name = 'CacheMethods') {
367367

368368
module.exports = {
369369
makeCacheKey,
370-
normaliseHeaders,
370+
normalizeHeaders,
371371
assertCacheKey,
372372
assertCacheValue,
373373
parseCacheControlHeader,

0 commit comments

Comments
 (0)