Content Length fixes

See #137 

This PR uses ``Content-Length`` header value instead of unreliable ``res.bodySize`` field.