[https-client] Fix bug with https streaming