Fixed #1017: Content-Type and Content-Length request headers are treated incorrectly