🔨 Add 'User-Agent'in 'SetDefaults' function

This commit is contained in:
2025-03-22 22:25:54 +04:00
parent 11bb8b3fb0
commit 2a0ac390d8
4 changed files with 19 additions and 4 deletions

View File

@@ -166,9 +166,6 @@ func setRequestHeaders(req *fasthttp.Request, headers []types.KeyValue[string, s
for _, header := range headers {
req.Header.Add(header.Key, header.Value)
}
if req.Header.UserAgent() == nil {
req.Header.SetUserAgent(config.DefaultUserAgent)
}
}
// setRequestCookies adds the cookies of the given request with the provided key-value pairs.