Author: kkolinko
Date: Sun Oct 12 09:21:17 2014
New Revision: 1631155
URL: http://svn.apache.org/r1631155
Log:
Review of r1630910 - Simplify setCharset() call
Modified:
tomcat/trunk/java/org/apache/coyote/Response.java
tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java
Modified: tomcat/trunk/java/org/apache/coyote/Response.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/Response.java?rev=1631155&r1=1631154&r2=1631155&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/Response.java (original)
+++ tomcat/trunk/java/org/apache/coyote/Response.java Sun Oct 12 09:21:17 2014
@@ -311,7 +311,7 @@ public final class Response {
}
MessageBytes mb = headers.addValue(name);
if (charset != null) {
- mb.getByteChunk().setCharset(charset);
+ mb.setCharset(charset);
}
mb.setString(value);
}
Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java?rev=1631155&r1=1631154&r2=1631155&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java Sun Oct 12
09:21:17 2014
@@ -202,14 +202,14 @@ public final class MessageBytes implemen
}
/**
- * Get the Charset used for string<->byte conversions.
+ * Get the Charset used for string<->byte conversions.
*/
public Charset getCharset() {
return byteC.getCharset();
}
/**
- * Set the Charset used for string<->byte conversions.
+ * Set the Charset used for string<->byte conversions.
*/
public void setCharset(Charset charset) {
byteC.setCharset(charset);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]