Page MenuHomePhabricator

D9868.id33184.diff
No OneTemporary

D9868.id33184.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
Fri, Nov 8, 3:19 PM (13 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2443796
Default Alt Text
D9868.id33184.diff (763 B)

Event Timeline