diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-09 22:42:31 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-09 22:42:31 +0900 |
commit | f7d75b3488eb3d887d989993beebe36e91dc9c6c (patch) | |
tree | 1877d8021b765f4888c7993a6d183ea64aa975f6 | |
parent | 223addb898938dec5cd5196f7ad9f0b3aca17a99 (diff) | |
download | plum-f7d75b3488eb3d887d989993beebe36e91dc9c6c.tar.gz |
examples: client/twitter: fix
-rw-r--r-- | examples/client/twitter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client/twitter.rb b/examples/client/twitter.rb index 69d2224..f870da4 100644 --- a/examples/client/twitter.rb +++ b/examples/client/twitter.rb @@ -18,7 +18,7 @@ Plum::Client.start("userstream.twitter.com", 443) { |streaming| streaming.get("/1.1/user.json", headers: { "authorization" => SimpleOAuth::Header.new(:get, "https://userstream.twitter.com/1.1/user.json", {}, credentials).to_s, "accept-encoding" => "identity;q=1" }) { |res| # plum doesn't have built-in gzip/deflate decoder - if res.status != 200 + if res.status != "200" puts "failed userstream" exit end |