lib/typhoeus/form.rb in dcu-typhoeus-0.4.1 vs lib/typhoeus/form.rb in dcu-typhoeus-0.4.2
- old
+ new
@@ -4,10 +4,11 @@
class Form
attr_accessor :params
attr_reader :first, :traversal
def initialize(params = {})
- @params = params
+ # ideally we should escape params here with Typhoeus::Utils.escape_params. I don't do it in this commit because I don't know the implications yet.
+ @params = params
@first = ::FFI::MemoryPointer.new(:pointer)
@last = ::FFI::MemoryPointer.new(:pointer)
ObjectSpace.define_finalizer(self, self.class.finalizer(self))
end