Jan Bartel 2024-05-01 17:48:30 +10:00
parent 53bb51a69d
commit c20a723749
1 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,7 @@ package org.eclipse.jetty.ee11.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.Charset;
import java.util.Collection;
import java.util.EnumSet;
import java.util.Locale;
@ -339,6 +340,12 @@ public class ServletApiResponse implements HttpServletResponse
getServletResponseInfo().setCharacterEncoding(encoding, ServletContextResponse.EncodingFrom.SET_CHARACTER_ENCODING);
}
@Override
public void setCharacterEncoding(Charset encoding)
{
setCharacterEncoding(encoding == null ? null : encoding.name());
}
@Override
public void setContentLength(int len)
{