mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 12:30:54 +00:00
remove the default timeout setting
This commit is contained in:
parent
4857e38471
commit
9107fd8898
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user