lib/snapme/snapper.rb in snapme-0.1.2 vs lib/snapme/snapper.rb in snapme-0.1.3

- old
+ new

@@ -40,10 +40,12 @@ def post_snapshot curl.http_post(file) end def curl - @curl ||= Curl::Easy.new(endpoint_url) + @curl ||= Curl::Easy.new(endpoint_url).tap do |curl| + curl.multipart_form_post = true + end end def file Curl::PostField.file(field_name, filename) end