http: fix client receiving large data