mod_jk and httpd 2.x do not like that.
Addition to r697183.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@757721
13f79535-47bb-0310-9956-
ffa450edef68
} else {
message = message.replace('\n', ' ').replace('\r', ' ');
}
+ if (message == null) {
+ // mod_jk + httpd 2.x fails with a null status message - bug 45026
+ message = Integer.toString(response.getStatus());
+ }
tmpMB.setString(message);
responseHeaderMessage.appendBytes(tmpMB);
} else {
message = message.replace('\n', ' ').replace('\r', ' ');
}
+ if (message == null) {
+ // mod_jk + httpd 2.x fails with a null status message - bug 45026
+ message = Integer.toString(response.getStatus());
+ }
tmpMB.setString(message);
responseHeaderMessage.appendBytes(tmpMB);
</subsection>
<subsection name="Coyote">
<changelog>
+ <fix>
+ <bug>45026</bug>: Never return an empty HTTP status response phrase.
+ mod_jk and httpd 2.x do not like that. (rjung)
+ </fix>
<update>
Allow bigger AJP packets also for request bodies and responses
using the packetSize attribute of the Connector. (rjung)