Fix bug with not writing a response when POSTing a message