Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9f1f7fef
authored
Mar 13, 2018
by
许雪里
Committed by
GitHub
Mar 13, 2018
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge pull request #306 from it-noob/patch-1
修改http请求工具类入参拼写错误
parents
295fb256
34533c16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
xxl-job-core/src/main/java/com/xxl/job/core/util/HttpClientUtil.java
xxl-job-core/src/main/java/com/xxl/job/core/util/HttpClientUtil.java
View file @
9f1f7fef
...
...
@@ -26,7 +26,7 @@ public class HttpClientUtil {
/**
* post request
*/
public
static
byte
[]
postRequest
(
String
reqURL
,
byte
[]
dat
e
)
throws
Exception
{
public
static
byte
[]
postRequest
(
String
reqURL
,
byte
[]
dat
a
)
throws
Exception
{
byte
[]
responseBytes
=
null
;
HttpPost
httpPost
=
new
HttpPost
(
reqURL
);
...
...
@@ -53,8 +53,8 @@ public class HttpClientUtil {
httpPost
.
setConfig
(
requestConfig
);
// data
if
(
dat
e
!=
null
)
{
httpPost
.
setEntity
(
new
ByteArrayEntity
(
dat
e
,
ContentType
.
DEFAULT_BINARY
));
if
(
dat
a
!=
null
)
{
httpPost
.
setEntity
(
new
ByteArrayEntity
(
dat
a
,
ContentType
.
DEFAULT_BINARY
));
}
// do post
HttpResponse
response
=
httpClient
.
execute
(
httpPost
);
...
...
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