Skip to content

Commit

Permalink
fix a problem
Browse files Browse the repository at this point in the history
  • Loading branch information
sagan committed Dec 5, 2023
1 parent 3679d15 commit 305f2b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/cookiecloud/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ func GetCookiecloudData(server string, uuid string, password string, proxy strin
return cookiecloudData, nil
}

func (cookiecloudData *CookiecloudData) GetEffectiveCookie(urlOrHost string) (string, error) {
hostname := ""
func (cookiecloudData *CookiecloudData) GetEffectiveCookie(urlOrDomain string) (string, error) {
hostname := urlOrDomain
path := "/"
if util.IsUrl(urlOrHost) {
urlObj, err := url.Parse(urlOrHost)
if util.IsUrl(urlOrDomain) {
urlObj, err := url.Parse(urlOrDomain)
if err != nil {
return "", fmt.Errorf("arg is not a valid url: %v", err)
}
Expand Down

0 comments on commit 305f2b2

Please sign in to comment.