Skip to content

Commit

Permalink
UNDERTOW-550 Clear charsetSet if the charset is null
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Sep 29, 2015
1 parent 95051a8 commit 549ea17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public void setCharacterEncoding(final String charset) {
if (insideInclude || responseStarted() || writer != null || isCommitted()) {
return;
}
charsetSet = true;
charsetSet = charset != null;
this.charset = charset;
if (contentType != null) {
exchange.getResponseHeaders().put(Headers.CONTENT_TYPE, getContentType());
Expand Down

0 comments on commit 549ea17

Please sign in to comment.