File tree Expand file tree Collapse file tree
java/org/apache/catalina/connector Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -820,11 +820,13 @@ public Collection<String> getHeaderNames() {
820820 for (int i = 0 ; i < n ; i ++) {
821821 result .add (headers .getName (i ).toString ());
822822 }
823- if (getCoyoteResponse ().getContentType () != null ) {
824- result .add ("Content-Type" );
825- }
826- if (getCoyoteResponse ().getContentLengthLong () != -1 ) {
827- result .add ("Content-Length" );
823+ if (!getCoyoteResponse ().isCommitted ()) {
824+ if (getCoyoteResponse ().getContentType () != null ) {
825+ result .add ("Content-Type" );
826+ }
827+ if (getCoyoteResponse ().getContentLengthLong () != -1 ) {
828+ result .add ("Content-Length" );
829+ }
828830 }
829831 return result ;
830832 }
Original file line number Diff line number Diff line change 124124 Align the escaping in <code>ExtendedAccessLogValve</code> with the other
125125 <code>AccessLogValve</code> implementations. (markt)
126126 </fix>
127+ <fix>
128+ <bug>70000</bug>: fix duplication of special headers in the response
129+ after commit, following fix for <bug>69967</bug>. (remm)
130+ </fix>
127131 </changelog>
128132 </subsection>
129133 <subsection name="Coyote">
You can’t perform that action at this time.
0 commit comments