This code fixes the chunked encoding error from SYNOLOGY C2 S3 BUCKET in BOTO3
error:
boto3.exceptions.S3UploadFailedError: Failed to upload requirements.txt to requirements.txt: An error occurred (NotImplemented) when calling the PutObject operation: Transfering payloads in multiple chunks using aws-chunked is not supported.
We need to disable chunked encoding as c2 synology has no chunked encoding support like aws s3 or recent minio versions.
Note: This was not AI generated