Fixed Legacy HTTP API returning empty response on large files

Apparently, this hasn't gotten merged yet, which is why the bug has been reproduced in production, again. My bad.