lib/pmp/token.rb in pmp-0.3.1 vs lib/pmp/token.rb in pmp-0.3.2
- old
+ new
@@ -44,10 +44,11 @@
ssl: {:verify => false},
url: opts[:endpoint]
}.merge(opts)
options[:headers] = options[:headers].merge(headers)
- options
+ # clean out any that don't belong
+ options.select{|k,v| PMP::Connection::ALLOWED_CONNECTION_OPTIONS.include?(k.to_sym)}
end
end
end