refactor: Improve parameter naming for clarity in URL arguments

This commit is contained in:
2025-11-19 13:03:28 +00:00
parent 5ae735ce8d
commit 2115262f6e
3 changed files with 31 additions and 21 deletions

View File

@@ -20,14 +20,14 @@ func NewCycletlsClient(ja3, userAgent string) *cycletlsClient {
}
}
func (c *cycletlsClient) Get(URL string, opts *cycletls.Options) (cycletls.Response, error) {
func (c *cycletlsClient) Get(reqURL string, opts *cycletls.Options) (cycletls.Response, error) {
opts.Ja3 = c.ja3
opts.UserAgent = c.userAgent
return c.client.Do(URL, *opts, http.MethodGet)
return c.client.Do(reqURL, *opts, http.MethodGet)
}
func (c *cycletlsClient) Post(URL string, opts *cycletls.Options) (cycletls.Response, error) {
func (c *cycletlsClient) Post(reqURL string, opts *cycletls.Options) (cycletls.Response, error) {
opts.Ja3 = c.ja3
opts.UserAgent = c.userAgent
return c.client.Do(URL, *opts, http.MethodPost)
return c.client.Do(reqURL, *opts, http.MethodPost)
}