detect content type in Write() if it's unset

If we don't do this, the underlying http.ResponseWriter does and we get
autodetected as application/gzip.