lib/fanforce/base/utils.rb in fanforce-base-2.0.0.rc2 vs lib/fanforce/base/utils.rb in fanforce-base-2.0.0.rc3

- old
+ new

@@ -106,12 +106,12 @@ def curl_command(method, url, req_params) case method.to_s.downcase.to_sym when :get "curl \"#{url}?#{to_query_string(req_params)}\"" when :post - "curl -X POST -d \"#{to_query_string(req_params)}\" #{url}" + "curl -X POST -H 'Content-type: application/json' -d '#{MultiJson.dump(req_params).gsub("'", %q(\\\'))}' #{url}" when :put - "curl -X PUT -d \"#{to_query_string(req_params)}\" #{url.to_json}" + "curl -X PUT -H 'Content-type: application/json' -d '#{MultiJson.dump(req_params).gsub("'", %q(\\\'))}' #{url.to_json}" when :delete "curl --request DELETE \"#{url}?#{to_query_string(req_params)}\"" when :options "curl -X OPTIONS \"#{url}?#{to_query_string(req_params)}\"" else