Page MenuHomePhorge

D9868.1765336473.diff
No OneTemporary

Size
763 B
Referenced Files
None
Subscribers
None

D9868.1765336473.diff

diff --git a/keyserver/src/utils/urls.js b/keyserver/src/utils/urls.js
--- a/keyserver/src/utils/urls.js
+++ b/keyserver/src/utils/urls.js
@@ -21,7 +21,7 @@
export type Site = $Values<typeof sitesObj>;
const sites: $ReadOnlyArray<Site> = values(sitesObj);
-const cachedURLFacts = new Map();
+const cachedURLFacts = new Map<Site, ?AppURLFacts>();
async function fetchURLFacts(site: Site): Promise<?AppURLFacts> {
const existing = cachedURLFacts.get(site);
if (existing !== undefined) {
@@ -35,7 +35,7 @@
const { proxy } = urlFacts;
urlFacts = {
...urlFacts,
- proxy: validProxies.has(proxy) ? proxy : 'apache',
+ proxy: proxy && validProxies.has(proxy) ? proxy : 'apache',
};
}
cachedURLFacts.set(site, urlFacts);

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 10, 3:14 AM (12 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5860412
Default Alt Text
D9868.1765336473.diff (763 B)

Event Timeline