This website works better with JavaScript.
Home
Explore
Help
Sign In
tgo
/
network
Watch
6
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
6
Wiki
Activity
Browse Source
修改PostJson设置头部
master
v0.3.1
guzeng
3 years ago
parent
34585d7e73
commit
452182ea7c
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
url.go
+ 1
- 1
url.go
View File
@ -63,7 +63,7 @@ func PostJson(url string, param []byte, header ...map[string]string) ([]byte, er
if
len
(
header
)
>
0
{
for
_
,
item
:=
range
header
{
for
k
,
v
:=
range
item
{
req
.
Header
.
Set
(
k
,
v
)
req
.
Header
[
k
]
=
[
]
string
{
v
}
}
}
}
Write
Preview
Loading…
Cancel
Save