Drain data buffer on successful response from server.