Skip to content

Commit 4127a9a

Browse files
authored
Merge pull request #167 from iBuddha/master
'utf-8' is not a valid value for the Content-Encoding header
2 parents 57e883c + 4482e6d commit 4127a9a

File tree

1 file changed

+3
-3
lines changed
  • dss-azkaban-scheduler-appjoint/src/main/java/com/webank/wedatasphere/dss/appjoint/scheduler/azkaban/service

1 file changed

+3
-3
lines changed

dss-azkaban-scheduler-appjoint/src/main/java/com/webank/wedatasphere/dss/appjoint/scheduler/azkaban/service/AzkabanProjectService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ public Project createProject(Project project, Session session) throws AppJointEr
8080
params.add(new BasicNameValuePair("name", project.getName()));
8181
params.add(new BasicNameValuePair("description", project.getDescription()));
8282
HttpPost httpPost = new HttpPost(projectUrl);
83-
httpPost.addHeader(HTTP.CONTENT_ENCODING, "UTF-8");
83+
httpPost.addHeader(HTTP.CONTENT_ENCODING, HTTP.IDENTITY_CODING);
8484
CookieStore cookieStore = new BasicCookieStore();
8585
cookieStore.addCookie(session.getCookies()[0]);
86-
HttpEntity entity = EntityBuilder.create().setContentEncoding("UTF-8").
87-
setContentType(ContentType.create("application/x-www-form-urlencoded", Consts.UTF_8))
86+
HttpEntity entity = EntityBuilder.create()
87+
.setContentType(ContentType.create("application/x-www-form-urlencoded", Consts.UTF_8))
8888
.setParameters(params).build();
8989
httpPost.setEntity(entity);
9090
CloseableHttpClient httpClient = null;

0 commit comments

Comments
 (0)