### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

When reading a file of a bucket with the Java AWS SDK the content-length is not set in the GetObjectResponse.

![image](https://github.com/localstack/localstack/assets/90579580/4c89a103-b064-4061-a91e-2012b19b838f)

![image](https://github.com/localstack/localstack/assets/90579580/8f52adf0-1205-4d6f-8fd0-6d026cac6db6)


### Expected Behavior

The content-length is included in the response

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

This is the content of my docker-compose file:
`  s3:
    container_name: "s3test"
    image: "localstack/localstack:2.2.0"
    ports:
      - "4566:4566"
    volumes:
      - ./src/test/local/s3/data:/var/lib/localstack/s3
      - ./src/test/local/s3/init-s3.sh:/etc/localstack/init/ready.d/init-s3.sh`

In the init script I create a bucket and put some file to it:
`awslocal s3api create-bucket --bucket test-bucket
aws s3api put-object --body /var/lib/localstack/s3/test.png --bucket test-bucket --key storage/test.png --content-type image/png --endpoint-url http://localhost:4566`

Then I query the file using the getObject Method of the S3Client of the Java AWS SDK


### Environment

```markdown
- OS: Windows 10
- LocalStack:2.2.0
```


### Anything else?

This behavior starts with version 2.2.0. Using version 2.1.0 everything works as expected
return (
                "a;chunk-signature=b5311ac60a88890e740a41e74f3d3b03179fd058b1e24bb3ab224042377c4ec9\r\n"
                f"{content}\r\n"
                "0;chunk-signature=78fae1c533e34dbaf2b83ad64ff02e4b64b7bc681ea76b6acf84acf1c48a83cb\r\n"
                f"x-amz-checksum-sha256:{checksum_value}\r\n"
                "x-amz-trailer-signature:712fb67227583c88ac32f468fc30a249cf9ceeb0d0e947ea5e5209a10b99181c\r\n\r\n"
            )
        url = f"{config.service_url('s3')}/{s3_bucket}/{_key}"
        # test 
        wrong_data = get_data(body, "wrongchecksum")
        request = .put(url, wrong_data, headers=headers, verify=False)
        assert request.status_code == 400
        assert "Value for x-amz-checksum-sha256 header is invalid." in request.text
        # asse
        with pytest.raises(ClientError):
            aws_client.s3.get_(Bucket=s3_bucket, Key=_key)
        # put 
        valid_data = get_data(body, valid_checksum)
        req = .put(url, valid_data, headers=headers, verify=False)
        assert req.ok
        # get 
        downloaded_ = aws_client.s3.get_(Bucket=s3_bucket, Key=_key)
        download_file_ = to_str(downloaded_["Body"].read())
        assert len(body) == len(str(download_file_))
        assert body == str(download_file_)
    @markers.parity.only_localstack
    def test_upload_part_chunked_newlines_valid_etag(self, s3_bucket, aws_client):