Skip to content

Instantly share code, notes, and snippets.

@jballanc
Created June 26, 2010 07:32
Show Gist options
  • Save jballanc/453871 to your computer and use it in GitHub Desktop.
Save jballanc/453871 to your computer and use it in GitHub Desktop.
if content_type || filename
body = Tempfile.new("RackMultipart")
body.binmode if body.respond_to?(:binmode)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment