Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3173346
D9868.id33184.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
763 B
Referenced Files
None
Subscribers
None
D9868.id33184.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9868: [Flow202][keyserver][skip-ci] [19/x] Fix Flow issues with collection lookup that doesn't match type
Attached
Detach File
Event Timeline
Log In to Comment