Content-Length monkey patch for Rails <= 4.1