Flush body when POST requests (#5128)

This commit is contained in:
abcang
2017-09-28 22:04:32 +09:00
committed by Eugen Rochko
parent b9f59ebcc6
commit 3d9b8847d2
5 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ class SubscribeService < BaseService
@account = account
@account.secret = SecureRandom.hex
@response = build_request.perform
@response = build_request.perform.flush
if response_failed_permanently?
# We're not allowed to subscribe. Fail and move on.