move `if response_block` out of while loop
Merge pull request #329 from burns/response_parse

move `if response_block` out of while loop