refactor: Improve parameter naming for clarity in URL arguments
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user