Date: Sat, 18 Jun 2022 20:37:34 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264757] [PATCH] usr.bin/fetch: Show correct port number in -vv output Message-ID: <bug-264757-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264757 Bug ID: 264757 Summary: [PATCH] usr.bin/fetch: Show correct port number in -vv output Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: mallorya@fastmail.com Created attachment 234771 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234771&action=edit usr.bin/fetch: Show correct port number in -vv output The code in libfetch only sets the port number in `-vv` output when there's a `:` before the path component. This patch sets the port number based on the URL scheme. Old behavior: ``` % fetch -vv https://www.freebsd.org/ scheme: "https" user: "" password: "" host: "www.freebsd.org" port: "0" document: "/" ---> www.freebsd.org:443 ``` New behavior: ``` % fetch -vv https://www.freebsd.org/ scheme: "https" user: "" password: "" host: "www.freebsd.org" port: "443" document: "/" ---> www.freebsd.org:443 ``` -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264757-227>
