diff options
author | GuangrongFu <fu.guangrong@zte.com.cn> | 2017-03-11 22:08:06 +0800 |
---|---|---|
committer | GuangrongFu <fu.guangrong@zte.com.cn> | 2017-03-11 22:08:06 +0800 |
commit | d9052a7491e6f8f0474bac6e717a9afc691f30e7 (patch) | |
tree | 2b8f84c7b5e20a916934e16adc88e0aab33b1e9a /rulemgt/src/main/java/org | |
parent | 6112b640c9ae4a08fa5ac3b37026a70c1ed0f8c5 (diff) |
Fix the Http Request Problem
Change-Id: I5fb291f96c68de761165e42f1647f5aca784e69d
Issue-ID: HOLMES-50
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt/src/main/java/org')
-rw-r--r-- | rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java b/rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java index 5588dd4..382b570 100644 --- a/rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java +++ b/rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java @@ -115,10 +115,8 @@ public class EngineService { }
private void setHeader(HttpRequestBase httpRequestBase) {
- httpRequestBase.setHeader("Content-Type", "text/html;charset=UTF-8");
httpRequestBase.setHeader("Accept", "application/json");
httpRequestBase.setHeader("Content-Type", "application/json");
- httpRequestBase.setHeader("Content-Length", "2000");
}
public byte[] getData(HttpEntity httpEntity) throws IOException {
|