Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d8734cf5
authored
2015-04-26 16:08:25 +0800
by
JessonChan
Committed by
astaxie
2015-05-25 09:10:37 +0800
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
set default timeout
1 parent
51161361
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
httplib/httplib.go
httplib/httplib.go
View file @
d8734cf
...
...
@@ -357,6 +357,13 @@ func (b *BeegoHttpRequest) getResponse() (*http.Response, error) {
trans
:=
b
.
setting
.
Transport
if
b
.
setting
.
ConnectTimeout
==
0
{
b
.
setting
.
ConnectTimeout
=
30
*
time
.
Second
}
if
b
.
setting
.
ReadWriteTimeout
==
0
{
b
.
setting
.
ReadWriteTimeout
=
30
*
time
.
Second
}
if
trans
==
nil
{
// create default transport
trans
=
&
http
.
Transport
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment