Skip to content

Commit f0d9356

Browse files
committed
v3.6: 优化 solon-server 不再默认输出 TEXT_PLAIN_UTF8_VALUE(允许空 content-type)
1 parent fa06fed commit f0d9356

File tree

1 file changed

+1
-1
lines changed
  • solon-jakarta-projects/solon-web/solon-web-servlet-jakarta/src/main/java/org/noear/solon/web/servlet

1 file changed

+1
-1
lines changed

solon-jakarta-projects/solon-web/solon-web-servlet-jakarta/src/main/java/org/noear/solon/web/servlet/SolonServletHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected boolean useLimitStream() {
4444
@Override
4545
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
4646
SolonServletContext ctx = new SolonServletContext(request, response, useLimitStream());
47-
ctx.contentType(MimeType.TEXT_PLAIN_UTF8_VALUE);
47+
//ctx.contentType(MimeType.TEXT_PLAIN_UTF8_VALUE);
4848

4949
preHandle(ctx);
5050

0 commit comments

Comments
 (0)