### Describe the bug

AxiosError: unexpected end of file

Was not present before 1.2.1

### To Reproduce

_No response_

### Code snippet

_No response_

### Expected behavior

_No response_

### Axios Version

1.2.1

### Adapter Version

_No response_

### Browser

_No response_

### Browser Version

_No response_

### Node.js Version

_No response_

### OS

_No response_

### Additional Library Versions

_No response_

### Additional context/Screenshots

_No response_
test/unit/adapters/http.js
});
      });
    });
    it('should properly handle empty responses without Z_BUF_ERROR throwing', async () => {
      this.timeout(10000);
      server = await startHTTPServer((req, res) => {
        res.setHeader('Content-Encoding', 'gzip');
        res.end();
      });
      await axios.get(LOCAL_SERVER_URL);
    });
    it('should not fail if response content-length header is missing', async () => {
      this.timeout(10000);
      const str = 'zipped';
      const zipped = await gzip(str);
      server = await startHTTPServer((req, res) => {
        res.setHeader('Content-Encoding', 'gzip');
        res.removeHeader('Content-Length');
        res.end(zipped);
      });
      const {data} = await axios.get(LOCAL_SERVER_URL);
      assert.strictEqual(data, str);
    });
  });
  it('should support UTF8', function (done) {
    var str = Array(100000).join('ж');
    server = http.createServer(function (req, res) {
      res.setHeader('Content-Type', 'text/html; charset=UTF-8');
      res.end(str);
    }).listen(4444, function () {