1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 06:00:55 +00:00

remove the default timeout setting

This commit is contained in:
astaxie 2015-08-17 22:33:28 +08:00
parent 4857e38471
commit 9107fd8898

View File

@ -74,12 +74,6 @@ func SetDefaultSetting(setting BeegoHttpSettings) {
settingMutex.Lock()
defer settingMutex.Unlock()
defaultSetting = setting
if defaultSetting.ConnectTimeout == 0 {
defaultSetting.ConnectTimeout = 60 * time.Second
}
if defaultSetting.ReadWriteTimeout == 0 {
defaultSetting.ReadWriteTimeout = 60 * time.Second
}
}
// return *BeegoHttpRequest with specific method