Permalink
Browse files

POST is required for /user/keys and /user/emails.

The .keys and .emails methods returned a "not authenticated" error because
they were fetched via GET and thus the credentials were not sent. Using POST
fixes this bug.
  • Loading branch information...
1 parent 1b81136 commit 3cb8fbddb6cbd0c9ef2d23e65363d48c42917a68 @runpaint committed Apr 23, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/octopi.rb
View
2 lib/octopi.rb
@@ -82,7 +82,7 @@ def initialize(login = nil, token = nil, format = "yaml")
%w[keys emails].each do |action|
define_method("#{action}") do
- get("/user/#{action}")
+ post("/user/#{action}")
end
end

0 comments on commit 3cb8fbd

Please sign in to comment.