Skip to content

Commit

Permalink
Merge pull request sensu#41 from portertech/api
Browse files Browse the repository at this point in the history
[api] stash creation, request body is json, not a form
  • Loading branch information
portertech committed Oct 7, 2011
2 parents 4955ec3 + 8c0f2f1 commit 7d55a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sensu/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def self.setup(options={})
end

apost '/stash/*' do |path|
conn.redis.set('stash:' + path, params[:data]).callback do
conn.redis.set('stash:' + path, request.body.read).callback do
status 201
body nil
end
Expand Down

0 comments on commit 7d55a3a

Please sign in to comment.