Fix copy/paste error and return a 500 rather 400 response

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1602243 13f79535-47bb-0310-9956-ffa450edef68
No need for the expectation check in an error state as the connection will be closed any way.


git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1602244 13f79535-47bb-0310-9956-ffa450edef68
Backport some clean-up from trunk

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1602246 13f79535-47bb-0310-9956-ffa450edef68
Check committed before changing any field values
Remove various incorrect comments

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1602247 13f79535-47bb-0310-9956-ffa450edef68