mirror of https://github.com/actions/toolkit
Formatting
parent
17e0aec811
commit
60f4e9859c
|
@ -16,8 +16,7 @@ export function getProxyUrl(reqUrl: URL): URL | undefined {
|
|||
if (proxyVar) {
|
||||
try {
|
||||
return new URL(proxyVar)
|
||||
}
|
||||
catch {
|
||||
} catch {
|
||||
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
|
||||
return new URL('http://' + proxyVar)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue