PatchHost returns a host string without trailing dot. For details see also the discussion in https://lists.w3.org/Archives/Public/ietf-http-wg/2016JanMar/0430.html.
(host string)
| 6 | // see also the discussion in |
| 7 | // https://lists.w3.org/Archives/Public/ietf-http-wg/2016JanMar/0430.html. |
| 8 | func PatchHost(host string) string { |
| 9 | host = strings.ReplaceAll(host, ".:", ":") |
| 10 | return strings.TrimSuffix(host, ".") |
| 11 | } |
no outgoing calls
searching dependent graphs…