lib/downlow/fetchers/http.rb in downlow-0.1.1 vs lib/downlow/fetchers/http.rb in downlow-0.1.2
- old
+ new
@@ -15,9 +15,10 @@
else
filename = Pathname.new(u.base_uri.to_s).basename
end
data << u.read
end
+ filename = filename.to_s.gsub(/\?(.*)$/,'')
self.destination = destination.dirname + filename
File.open(destination, 'w') {|f| f << data }
@local_path = destination
end
\ No newline at end of file