lib/preposterous/request.rb in preposterous-0.0.5 vs lib/preposterous/request.rb in preposterous-0.1.0

- old
+ new

@@ -18,10 +18,10 @@ end def uri @uri ||= begin uri = URI.parse(path) - if options[:fields] && options[:fields] != {} + if not options.nil? and options.key?(:fields) and options[:fields] != {} uri.query = to_query(options[:fields]) end uri.to_s end