### 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
Bucket=s3_bucket,
            VersioningConfiguration={"Status": "Suspended"},
        )
        list_obj_post_versioned_disabled = aws_client.s3.list__versions(Bucket=s3_bucket)
        snapshot.match("list-bucket-suspended", list_obj_post_versioned_disabled)
        get_obj_versioned_disabled = aws_client.s3.get_(Bucket=s3_bucket, Key=key_2)
        snapshot.match("get-obj-versioned-disabled", get_obj_versioned_disabled)
        get_obj_non_versioned_disabled = aws_client.s3.get_(Bucket=s3_bucket, Key=key)
        snapshot.match("get-obj-non-versioned-disabled", get_obj_non_versioned_disabled)
        # won'
        key_3 = "non-version-bucket-key-after-disable"
        put_obj_non_version_post_disable = aws_client.s3.put_(
            Bucket=s3_bucket, Key=key_3, Body="non-versioned-key-post"
        )
        snapshot.match("put-non-versioned-post-disable", put_obj_non_version_post_disable)
        # will 
        get_obj_non_version_post_disable = aws_client.s3.get_(Bucket=s3_bucket, Key=key_3)
        snapshot.match("get-non-versioned-post-disable", get_obj_non_version_post_disable)
        # manu
        if is_aws_cloud() or not LEGACY_S3_PROVIDER:
            assert "VersionId" not in get_obj_pre_versioned
            assert get_obj_non_versioned["VersionId"] == "null"
            assert list_obj_pre_versioned["Versions"][0]["VersionId"] == "null"
            assert get_obj_versioned["VersionId"] is not None
            assert list_obj_post_versioned["Versions"][0]["VersionId"] == "null"
            assert list_obj_post_versioned["Versions"][1]["VersionId"] is not None
            assert list_obj_post_versioned["Versions"][2]["VersionId"] is not None
    @markers.parity.aws_validated
    @pytest.mark.xfail(reason="ACL behaviour is not implemented, see comments")
    def test_s3_batch_delete_s_using__with_acl(