[go: up one dir, main page]

Skip to content

Draft: fix: .Hostname() may strip port, use .Host

Description

  • fix: .Hostname() may strip port, use .Host

Calling u.Hostname() strips port number, resulting in default port i.e. 443 being used. The u.Host member provides host and (if specified) port as host and host:port respectively.

Related Issues

Resolves #8022

How has this been tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap

Merge request reports

Loading