File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/com/ning/http/client/providers/netty Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 156
156
import static org .jboss .netty .channel .Channels .pipeline ;
157
157
158
158
public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler implements AsyncHttpProvider {
159
+
160
+ public static final String GZIP_DEFLATE = HttpHeaders .Values .GZIP + "," + HttpHeaders .Values .DEFLATE ;
161
+
159
162
public static final IOException REMOTELY_CLOSED_EXCEPTION = new IOException ("Remotely Closed" );
160
163
static {
161
164
REMOTELY_CLOSED_EXCEPTION .setStackTrace (new StackTraceElement [0 ]);
@@ -676,7 +679,7 @@ else if (uri.getRawQuery() != null)
676
679
}
677
680
678
681
if (config .isCompressionEnabled ()) {
679
- nettyRequest .setHeader (HttpHeaders .Names .ACCEPT_ENCODING , HttpHeaders . Values . GZIP );
682
+ nettyRequest .setHeader (HttpHeaders .Names .ACCEPT_ENCODING , GZIP_DEFLATE );
680
683
}
681
684
} else {
682
685
List <String > auth = request .getHeaders ().get (HttpHeaders .Names .PROXY_AUTHORIZATION );
You can’t perform that action at this time.
0 commit comments