Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
86752a55
Commit
86752a55
authored
Aug 18, 2014
by
smallfish
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename SetAgent and ToXML
parent
d27c5c8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
httplib.go
httplib/httplib.go
+2
-2
No files found.
httplib/httplib.go
View file @
86752a55
...
...
@@ -127,7 +127,7 @@ func (b *BeegoHttpRequest) SetEnableCookie(enable bool) *BeegoHttpRequest {
}
// SetUserAgent sets User-Agent header field
func
(
b
*
BeegoHttpRequest
)
SetAgent
(
useragent
string
)
*
BeegoHttpRequest
{
func
(
b
*
BeegoHttpRequest
)
Set
User
Agent
(
useragent
string
)
*
BeegoHttpRequest
{
b
.
setting
.
UserAgent
=
useragent
return
b
}
...
...
@@ -411,7 +411,7 @@ func (b *BeegoHttpRequest) ToJson(v interface{}) error {
// ToXml returns the map that marshals from the body bytes as xml in response .
// it calls Response inner.
func
(
b
*
BeegoHttpRequest
)
ToX
ML
(
v
interface
{})
error
{
func
(
b
*
BeegoHttpRequest
)
ToX
ml
(
v
interface
{})
error
{
data
,
err
:=
b
.
Bytes
()
if
err
!=
nil
{
return
err
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment