Revert "Do not use realloc to resize responses"

This reverts commit 6d9ac3e65f6caf41ca931a415b9514af288f7edf.