HTTP Client Chunked Response Fix.

Better to do it at the end, on success. You can throw exceptions to client before function exit and this assignment become unnecessary.