Added response.end() after upload ends.