File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
ext/mvc-jsp/src/main/java/org/glassfish/jersey/server/mvc/jsp Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
33 *
44 * This program and the accompanying materials are made available under the
55 * terms of the Eclipse Public License v. 2.0, which is available at
@@ -124,6 +124,15 @@ public ServletOutputStream getOutputStream() throws IOException {
124124 public PrintWriter getWriter () throws IOException {
125125 return responseWriter ;
126126 }
127+
128+ @ Override
129+ public void flushBuffer () throws IOException {
130+ /*
131+ * Need to avoid different implementations to do something else, like invalidating new
132+ * headers after flushBuffer, because later when ContainerResponse.closes it flushBuffer again.
133+ */
134+ getOutputStream ().flush ();
135+ }
127136 });
128137 } catch (final Exception e ) {
129138 throw new ContainerException (e );
You can’t perform that action at this time.
0 commit comments