### 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
# it m
        _key = "temp.txt"
        client = _s3_client_custom_config(
            Config(signature_version="s3v4"),
        )
        url = client.generate_presigned_url(
            "put_",
            Params={"Bucket": s3_bucket, "Key": _key, "ServerSideEncryption": "AES256"},
        )
        assert "=AES256" not in url
        handler_file = os.path.join(
            os.path.dirname(__file__), "../awslambda/functions/lambda_s3_integration_sdk_v2.js"
        )
        temp_folder = create_tmp_folder_lambda(
            handler_file,
            run_command="npm i @aws-sdk/util-endpoints @aws-sdk/client-s3 @aws-sdk/s3-request-presigner @aws-sdk/middleware-endpoint",
        )
        function_name = f"func-integration-{short_uid()}"
        create_lambda_function(
            func_name=function_name,
            zip_file=testutil.create_zip_file(temp_folder, get_content=True),
            runtime=LAMBDA_RUNTIME_NODEJS14X,
            handler="lambda_s3_integration_sdk_v2.handler",
            role=lambda_su_role,
        )
        s3_create_bucket(Bucket=function_name)
        response = aws_client.awslambda.invoke(FunctionName=function_name)
        presigned_url = response["Payload"].read()
        presigned_url = json.loads(to_str(presigned_url))["body"].strip('"')
        assert "=AES256" in presigned_url