### 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
if os.environ.get("TEST_TARGET") == "AWS_CLOUD":
        return boto3.client("s3", config=conf, endpoint_url=endpoint_url)
    # TODO in future this should work with aws_stack.create_external_boto_client
    #      currently it doesn't as authenticate_presign_url_signv2 requires the secret_key to be 'test'
    # return aws_stack.create_external_boto_client(
    #     "s3",
    #     config=conf,
    #     endpoint_url=endpoint_url,
    #     aws_access_key_id=TEST_AWS_ACCESS_KEY_ID,
    # )
    return boto3.client(
        "s3",
        endpoint_url=endpoint_url,
        config=conf,
        aws_access_key_id=TEST_AWS_ACCESS_KEY_ID,
        aws_secret_access_key=TEST_AWS_SECRET_ACCESS_KEY,
    )
def _endpoint_url(region: str = "", localstack_host: str = None) -> str:
    if not region:
        region = config.AWS_REGION_US_EAST_1
    if os.environ.get("TEST_TARGET") == "AWS_CLOUD":
        if region == "us-east-1":
            return "https://s3.amazonaws.com"
        else:
            return f"http://s3.{region}.amazonaws.com"
    if region == "us-east-1":
        return f"{config.get_edge_url(localstack_hostname=localstack_host or S3_VIRTUAL_HOSTNAME)}"
    return config.get_edge_url(f"s3.{region}.{LOCALHOST_HOSTNAME}")
def _bucket_url(bucket_name: str, region: str = "", localstack_host: str = None) -> str: