aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-11-09 22:42:31 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-11-09 22:42:31 +0900
commitf7d75b3488eb3d887d989993beebe36e91dc9c6c (patch)
tree1877d8021b765f4888c7993a6d183ea64aa975f6
parent223addb898938dec5cd5196f7ad9f0b3aca17a99 (diff)
downloadplum-f7d75b3488eb3d887d989993beebe36e91dc9c6c.tar.gz
examples: client/twitter: fix
-rw-r--r--examples/client/twitter.rb2
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