http: fix receive_size computation when the complete response is not
received in a single message (TSUN-296)