Issue #1676 remove deprecated methods on HttpFields
This commit is contained in:
parent
5a05e953b9
commit
f1146856ac
|
@ -259,14 +259,14 @@ public abstract class HttpReceiver
|
|||
ResponseNotifier notifier = getHttpDestination().getResponseNotifier();
|
||||
notifier.notifyHeaders(exchange.getConversation().getResponseListeners(), response);
|
||||
|
||||
Enumeration<String> contentEncodings = response.getHeaders().getValues(HttpHeader.CONTENT_ENCODING.asString(), ",");
|
||||
if (contentEncodings != null)
|
||||
List<String> contentEncodings = response.getHeaders().getCSV(HttpHeader.CONTENT_ENCODING.asString(), false);
|
||||
if (contentEncodings != null && !contentEncodings.isEmpty())
|
||||
{
|
||||
for (ContentDecoder.Factory factory : getHttpDestination().getHttpClient().getContentDecoderFactories())
|
||||
{
|
||||
while (contentEncodings.hasMoreElements())
|
||||
for (String encoding: contentEncodings)
|
||||
{
|
||||
if (factory.getEncoding().equalsIgnoreCase(contentEncodings.nextElement()))
|
||||
if (factory.getEncoding().equalsIgnoreCase(encoding))
|
||||
{
|
||||
this.decoder = factory.newContentDecoder();
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue