Skip to content

Commit 11cfd07

Browse files
authored
Merge pull request #131 from mizoR/fix-http-status-condition-check
Fix HTTP status code check
2 parents 7d1e260 + 158ecdd commit 11cfd07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/kitchensink/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def reply_content(event, messages)
3131
event['replyToken'],
3232
messages
3333
)
34-
puts res.read_body if res.code != 200
34+
puts res.read_body unless Net::HTTPOK === res
3535
end
3636

3737
post '/callback' do

0 commit comments

Comments
 (0)