Skip to content

Commit

Permalink
Tag 7.0.40
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed May 5, 2013
2 parents e367651 + edf6d75 commit 2b858c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions java/org/apache/coyote/http11/AbstractHttp11Processor.java
Expand Up @@ -816,7 +816,6 @@ public final void action(ActionCode actionCode, Object param) {
InputFilter savedBody = new SavedRequestInputFilter(body);
savedBody.setRequest(request);

@SuppressWarnings("unchecked")
AbstractInputBuffer<S> internalBuffer = (AbstractInputBuffer<S>)
request.getInputBuffer();
internalBuffer.addActiveFilter(savedBody);
Expand Down Expand Up @@ -1378,10 +1377,11 @@ private void prepareResponse() {
}

MimeHeaders headers = response.getMimeHeaders();
// A SC_NO_CONTENT (204) response may include entity headers
if (!entityBody && statusCode != 204) {
if (!entityBody) {
response.setContentLength(-1);
} else {
}
// A SC_NO_CONTENT response may include entity headers
if (entityBody || statusCode == 204) {
String contentType = response.getContentType();
if (contentType != null) {
headers.setValue("Content-Type").setString(contentType);
Expand Down

0 comments on commit 2b858c0

Please sign in to comment.