caches.HTTPAuthCacheM.RLock()
if creds, ok := caches.HTTPAuthCache[req.URL.Host]; ok {
req.SetBasicAuth(creds[0], creds[1])
- fifos.LogHTTPAuth <- fmt.Sprintf("%s %s\t%s", req.Method, req.URL, creds[0])
unauthorized = true
}
caches.HTTPAuthCacheM.RUnlock()