Aktueller Stand
This commit is contained in:
6
backend/node_modules/find-my-way/lib/strategies/accept-host.js
generated
vendored
6
backend/node_modules/find-my-way/lib/strategies/accept-host.js
generated
vendored
@@ -2,11 +2,11 @@
|
||||
const assert = require('node:assert')
|
||||
|
||||
function HostStorage () {
|
||||
const hosts = {}
|
||||
const hosts = new Map()
|
||||
const regexHosts = []
|
||||
return {
|
||||
get: (host) => {
|
||||
const exact = hosts[host]
|
||||
const exact = hosts.get(host)
|
||||
if (exact) {
|
||||
return exact
|
||||
}
|
||||
@@ -20,7 +20,7 @@ function HostStorage () {
|
||||
if (host instanceof RegExp) {
|
||||
regexHosts.push({ host, value })
|
||||
} else {
|
||||
hosts[host] = value
|
||||
hosts.set(host, value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user