lib/webmock/request_signature.rb in webmock-1.6.4 vs lib/webmock/request_signature.rb in webmock-1.7.0
- old
+ new
@@ -31,9 +31,13 @@
def eql?(other)
self.to_s == other.to_s
end
+ def url_encoded?
+ headers && headers['Content-Type'] == 'application/x-www-form-urlencoded'
+ end
+
private
def assign_options(options)
self.body = options[:body] if options.has_key?(:body)
self.headers = options[:headers] if options.has_key?(:headers)