Removed response.end() as it was returning 0 bytes in the response.