http.ResponseWriter doesn't implement  WriteCloser interface

The removed code will never be executed, remove it