(host string)
| 100 | } |
| 101 | |
| 102 | func getDomain(host string) string { |
| 103 | host = getHostname(host) |
| 104 | ss := strings.Split(host, ".") |
| 105 | if len(ss) < 3 { |
| 106 | return host |
| 107 | } |
| 108 | ss = ss[1:] |
| 109 | return strings.Join(ss, ".") |
| 110 | } |
| 111 | |
| 112 | // AlwaysCopyHeaderRedirectPolicy ensures that the given sensitive headers will |
| 113 | // always be copied on redirect. |
no test coverage detected
searching dependent graphs…