fix: admin/internet: dynamic dns updater was not supporting basic authentication
Massimo Melina committed
Mar 11, 2025 at 16:53 UTC
075adae471143d15a9a5857b7541384c6c20b8f2
1 file changed
+1
-1
src/util-http.ts
+1
-1
@@ -49,7 +49,7 @@ export function httpStream(url: string, { body, jar, noRedirect, httpThrow, prox
49
if (jar)
50
options.headers.cookie = _.map(jar, (v,k) => `${k}=${v}; `).join('')
51
+ (options.headers.cookie || '') // preserve parameter
52
- Object.assign(options, _.pick(parse(proxy || url), ['hostname', 'port', 'path', 'protocol']))
52
+ Object.assign(options, _.pick(parse(proxy || url), ['hostname', 'port', 'path', 'protocol', 'auth']))
53
if (proxy) {
54
options.path = url
55
options.headers.host ??= parse(url).host || undefined