Resize an array in parse_http_request() to the appropriate size