Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Turner committed May 3, 2022
1 parent 89569b2 commit e552983
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spnego.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ func getHostname(req *http.Request, canonicalize bool) (string, error) {
if req.Host != "" {
h = req.Host
}
// I can't think why you'd want to canonicalize an overridden Host
// header (you're likely to get the hostname in the URL, which is what
// you're overriding in the first place). But since it can be disabled,
// leave it here in the flow so that Host header hostnames can be
// canonicalized if desired.
if canonicalize {
if h, err = canonicalizeHostname(h); err != nil {
return "", err
Expand Down

0 comments on commit e552983

Please sign in to comment.