Add default 30s timeout on http client
@@ -350,7 +350,11 @@ func NewNoLogin(universe, username, password, lang string) *OGame {
b.language = lang
jar, _ := cookiejar.New(nil)
- b.Client = &OGameClient{}
+ b.Client = &OGameClient{
+ Client: http.Client{
+ Timeout: 30 * time.Second,
+ },
+ }
b.Client.Jar = jar
b.Client.UserAgent = defaultUserAgent
