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
ff92f22d
Commit
ff92f22d
authored
Aug 18, 2015
by
Shuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除Param中的断言
parent
860006bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
httplib.go
httplib/httplib.go
+2
-7
No files found.
httplib/httplib.go
View file @
ff92f22d
...
...
@@ -272,13 +272,8 @@ func (b *BeegoHttpRequest) SetProxy(proxy func(*http.Request) (*url.URL, error))
// Param adds query param in to request.
// params build query string as ?key1=value1&key2=value2...
func
(
b
*
BeegoHttpRequest
)
Param
(
key
,
value
interface
{})
*
BeegoHttpRequest
{
switch
value
.
(
type
)
{
case
string
:
b
.
params
[
key
.
(
string
)]
=
value
.
(
string
)
case
[]
string
:
b
.
params
[
key
.
(
string
)]
=
value
.
([]
string
)
}
func
(
b
*
BeegoHttpRequest
)
Param
(
key
string
,
value
interface
{})
*
BeegoHttpRequest
{
b
.
params
[
key
]
=
value
return
b
}
...
...
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