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

data is nil because of http post only returns one param #5

Open
guangleikarldai opened this issue Mar 30, 2015 · 0 comments
Open

data is nil because of http post only returns one param #5

guangleikarldai opened this issue Mar 30, 2015 · 0 comments

Comments

@guangleikarldai
Copy link
Contributor

In speedy_gcm.rb line 46~48
resp, dat = http.post(url.path, message_opts.to_json, headers)
return {:code => resp.code.to_i, :message => dat }

dat will always be nil since http.post now only returns one response object
reference: http://apidock.com/ruby/v1_9_3_392/Net/HTTP/post

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