Calls to writeResponse where removed. All the response data is now being sent using the end() method.