Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Endpoint strips format #104

Open
happyFish opened this issue Dec 14, 2011 · 0 comments
Open

Client Endpoint strips format #104

happyFish opened this issue Dec 14, 2011 · 0 comments

Comments

@happyFish
Copy link

There is a problem using the client endpoint for an oauth service when the format is specified.

I try to specify the return format, like so:
http://consumer.dev/oauth_consumers/dupl/client/series.json

But Rails just json formats the returned html response, and doesn't send the format as part of the endpoint.

from the consumer log:

Started GET "/oauth_consumers/dupl/client/series.json" for 127.0.0.1 at 2011-12-14 15:06:22 -0500
Processing by OauthConsumersController#client as JSON
Parameters: {"id"=>"dupl", "endpoint"=>"series"}

and the client log:

Started GET "/series/" for 127.0.0.1 at 2011-12-14 15:06:22 -0500

and here's the routes:

resources :oauth_consumers do
  member do
    get :callback
    get :callback2
    match 'client/*endpoint' => 'oauth_consumers#client'
  end
end

am i missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant