mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-15 04:18:03 +00:00
Pre-release cleanup.
This commit is contained in:
+4
-10
@@ -81,16 +81,10 @@ func (rm *ResourceManager) GetHTTPClient(key string) *http.Client {
|
||||
return client
|
||||
}
|
||||
|
||||
// Create new HTTP client with reasonable defaults
|
||||
client = &http.Client{
|
||||
Timeout: 30 * time.Second,
|
||||
Transport: &http.Transport{
|
||||
MaxIdleConns: 100,
|
||||
MaxIdleConnsPerHost: 10,
|
||||
IdleConnTimeout: 90 * time.Second,
|
||||
DisableKeepAlives: false,
|
||||
},
|
||||
}
|
||||
// SECURITY FIX: Use secure HTTP client configuration with limits
|
||||
config := DefaultHTTPClientConfig()
|
||||
factory := NewHTTPClientFactory()
|
||||
client = factory.CreateHTTPClient(config)
|
||||
|
||||
rm.httpClients[key] = client
|
||||
return client
|
||||
|
||||
Reference in New Issue
Block a user