fix(api): support HTTPS job posting fetches (#3267)

This commit is contained in:
cielhaidir
2026-07-27 13:13:25 +02:00
committed by GitHub
parent e6b4733c5f
commit d4cf260aed
2 changed files with 29 additions and 1 deletions
+8 -1
View File
@@ -163,7 +163,14 @@ function requestJobPosting(parsed: URL, address: ValidatedAddress, signal: Abort
accept: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"accept-language": "en-US,en;q=0.9",
},
lookup: (_hostname, _options, callback) => callback(null, address.address, address.family),
lookup: (_hostname, options, callback) => {
if (options.all) {
callback(null, [address]);
return;
}
callback(null, address.address, address.family);
},
},
resolve,
);