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 2012/06/06 21:57:50 UTC

svn commit: r1347082 - in /httpcomponents/httpcore/trunk: RELEASE_NOTES.txt httpcore/src/main/java/org/apache/http/entity/ContentType.java

Author: olegk
Date: Wed Jun  6 19:57:50 2012
New Revision: 1347082

URL: http://svn.apache.org/viewvc?rev=1347082&view=rev
Log:
HTTPCORE-299: ContentType should rely on Charset#name() instead of Charset#toString() for building header value

Modified:
    httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/ContentType.java

Modified: httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/RELEASE_NOTES.txt?rev=1347082&r1=1347081&r2=1347082&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/RELEASE_NOTES.txt (original)
+++ httpcomponents/httpcore/trunk/RELEASE_NOTES.txt Wed Jun  6 19:57:50 2012
@@ -1,6 +1,10 @@
 Changes since 4.2
 -------------------
 
+* [HTTPCORE-299] ContentType should rely on Charset#name() instead of Charset#toString() 
+  for building header value.
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
+
 * [HTTPCORE-263] Under rare circumstances incorrectly delineated or garbled HTTP message
   can cause an IndexOutOfBoundsException in AbstractSessionInputBuffer#readLine()
   Contributed by Michael Pujos <bubbleguuum at free.fr> 

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/ContentType.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/ContentType.java?rev=1347082&r1=1347081&r2=1347082&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/ContentType.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/ContentType.java Wed Jun  6 19:57:50 2012
@@ -115,7 +115,7 @@ public final class ContentType {
         buf.append(this.mimeType);
         if (this.charset != null) {
             buf.append("; charset=");
-            buf.append(this.charset);
+            buf.append(this.charset.name());
         }
         return buf.toString();
     }