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
e2be31b2
authored
Mar 13, 2018
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
https://github.com/xuxueli/xxl-job
parents
93be9097
9f1f7fef
Show 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 @
e2be31b2
...
@@ -26,7 +26,7 @@ public class HttpClientUtil {
...
@@ -26,7 +26,7 @@ public class HttpClientUtil {
/**
/**
* post request
* 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
;
byte
[]
responseBytes
=
null
;
HttpPost
httpPost
=
new
HttpPost
(
reqURL
);
HttpPost
httpPost
=
new
HttpPost
(
reqURL
);
...
@@ -53,8 +53,8 @@ public class HttpClientUtil {
...
@@ -53,8 +53,8 @@ public class HttpClientUtil {
httpPost
.
setConfig
(
requestConfig
);
httpPost
.
setConfig
(
requestConfig
);
// data
// data
if
(
dat
e
!=
null
)
{
if
(
dat
a
!=
null
)
{
httpPost
.
setEntity
(
new
ByteArrayEntity
(
dat
e
,
ContentType
.
DEFAULT_BINARY
));
httpPost
.
setEntity
(
new
ByteArrayEntity
(
dat
a
,
ContentType
.
DEFAULT_BINARY
));
}
}
// do post
// do post
HttpResponse
response
=
httpClient
.
execute
(
httpPost
);
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