mod_jk + httpd 2.x fails with a null status message.
Although the problem has been fixed in future httpd and mod_jk
versions, we should also stay safe on the backend side.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@697183
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(res.getStatus());
+ }
tempMB.setString( message );
c2b.convert( tempMB );
outputMsg.appendBytes(tempMB);