Apply Bugfixes from Apache 2.2 version
- discard SSL CERT headers
- handle responses with unspecified content length