Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed validation error

  • Loading branch information...
commit e32e1b849a832f5b43b2216eb26e28163e808bf7 1 parent 862046e
authored November 11, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/mandrill/api.rb
2  lib/mandrill/api.rb
@@ -68,7 +68,7 @@ def call(api_method, *args)
68 68
       req_endpoint = "#{API_URL}/#{@config[:api_version]}/#{api_method.to_s}/#{args.first.to_s}.#{@config[:format]}"
69 69
       req_body = {:key => @api_key}
70 70
       req_body.merge!(args.last) if args.last.is_a?(Hash)
71  
-      @response = HTTPI.post(req_endpoint, req_body)
  71
++     @response = HTTPI.post(req_endpoint, JSON.dump(req_body))
72 72
     end
73 73
     
74 74
     class Error < StandardError

0 notes on commit e32e1b8

Please sign in to comment.
Something went wrong with that request. Please try again.