Permalink
Browse files

Added json_put method

  • Loading branch information...
1 parent 1cd7780 commit 6bc003d6deff6e15f84b2f5f000d6d7e00d622a7 @zlu committed Aug 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nestful.rb
View
@@ -42,6 +42,6 @@ def json_post(url, params = nil)
end
def json_put(url, options = {})
- put(url, {"Content-Type" => "application/json"}.merge(options)).execute
+ put(url, {:format => :json}.merge(options)).execute
end
end

0 comments on commit 6bc003d

Please sign in to comment.