Skip to content

Commit

Permalink
Add default value for clientVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Apr 21, 2020
1 parent 0e85916 commit dc42e17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func NewConn(timeout time.Duration) (*Conn, error) {

longClientName: "github.com/rhymen/go-whatsapp",
shortClientName: "go-whatsapp",
clientVersion: "0.1.0",
}
return wac, wac.connect()
}
Expand All @@ -136,6 +137,7 @@ func NewConnWithProxy(timeout time.Duration, proxy func(*http.Request) (*url.URL

longClientName: "github.com/rhymen/go-whatsapp",
shortClientName: "go-whatsapp",
clientVersion: "0.1.0",
Proxy: proxy,
}
return wac, wac.connect()
Expand Down

0 comments on commit dc42e17

Please sign in to comment.