Use helper method to get ENV['CONTENT_LENGTH']
Merge pull request #11351 from jetthoughts/cleanup_request

Use content_length method instead of ENV['CONTENT_LENGTH'].to_i