You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2011/12/01 18:18:26 UTC

svn commit: r1209156 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/EntityUtils.java

Author: olegk
Date: Thu Dec  1 17:18:25 2011
New Revision: 1209156

URL: http://svn.apache.org/viewvc?rev=1209156&view=rev
Log:
Removed reference to a deprecated method

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/EntityUtils.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/EntityUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/EntityUtils.java?rev=1209156&r1=1209155&r2=1209156&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/EntityUtils.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/EntityUtils.java Thu Dec  1 17:18:25 2011
@@ -192,7 +192,8 @@ public final class EntityUtils {
             if (i < 0) {
                 i = 4096;
             }
-            String charset = getContentCharSet(entity);
+            ContentType contentType = ContentType.getOrDefault(entity);
+            String charset = contentType.getCharset();
             if (charset == null) {
                 charset = defaultCharset;
             }