#2181 Calculate MD5 checksum for empty body

Closed jangrewe
Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -2138,7 +2138,7 @@
Loading
2138 2138
    """Only add a Content-MD5 if the system supports it."""
2139 2139
    headers = params['headers']
2140 2140
    body = params['body']
2141 -
    if MD5_AVAILABLE and body and 'Content-MD5' not in headers:
2141 +
    if MD5_AVAILABLE and body is not None and 'Content-MD5' not in headers:
2142 2142
        md5_digest = calculate_md5(body, **kwargs)
2143 2143
        params['headers']['Content-MD5'] = md5_digest
2144 2144

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
botocore 98.21%
Project Totals (58 files) 98.21%
Loading