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
f684de23
authored
2014-08-22 17:12:46 +0800
by
jessonchan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed bug-request dump too early
1 parent
7b39bd70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
httplib/httplib.go
httplib/httplib.go
View file @
f684de2
...
...
@@ -319,13 +319,6 @@ func (b *BeegoHttpRequest) getResponse() (*http.Response, error) {
}
b
.
req
.
URL
=
url
if
b
.
setting
.
ShowDebug
{
dump
,
err
:=
httputil
.
DumpRequest
(
b
.
req
,
true
)
if
err
!=
nil
{
println
(
err
.
Error
())
}
println
(
string
(
dump
))
}
trans
:=
b
.
setting
.
Transport
...
...
@@ -370,6 +363,14 @@ func (b *BeegoHttpRequest) getResponse() (*http.Response, error) {
b
.
req
.
Header
.
Set
(
"User-Agent"
,
b
.
setting
.
UserAgent
)
}
if
b
.
setting
.
ShowDebug
{
dump
,
err
:=
httputil
.
DumpRequest
(
b
.
req
,
true
)
if
err
!=
nil
{
println
(
err
.
Error
())
}
println
(
string
(
dump
))
}
resp
,
err
:=
client
.
Do
(
b
.
req
)
if
err
!=
nil
{
return
nil
,
err
...
...
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