Skip to content

Commit

Permalink
TFJ-556 turn off keepalive explicitly. streaming api doesn't need it.
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuke committed May 9, 2012
1 parent c04de61 commit 4181538
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,9 @@ public int getHttpDefaultMaxPerRoute() {
}

public Map<String, String> getRequestHeaders() {
return nestedConf.getRequestHeaders();
Map<String, String> headers = nestedConf.getRequestHeaders();
headers.put("Connection", "close");
return headers;
}

public boolean isPrettyDebugEnabled() {
Expand All @@ -671,5 +673,4 @@ public boolean isPrettyDebugEnabled() {
public boolean isGZIPEnabled() {
return nestedConf.isGZIPEnabled();
}

}

0 comments on commit 4181538

Please sign in to comment.