(host string)
| 240 | } |
| 241 | |
| 242 | func normalizeHostForHint(host string) string { |
| 243 | host = strings.TrimSpace(strings.ToLower(host)) |
| 244 | host = strings.TrimPrefix(strings.TrimPrefix(host, "https://"), "http://") |
| 245 | if idx := strings.Index(host, "/"); idx >= 0 { |
| 246 | host = host[:idx] |
| 247 | } |
| 248 | return strings.TrimSuffix(host, "/") |
| 249 | } |
| 250 | |
| 251 | // sleepForSHAResolutionRetry waits for the retry delay or context cancellation. |
| 252 | // It returns ctx.Err() when the context is cancelled before the delay elapses, |
no test coverage detected