It looks to me like your check here is equivalent to:

    if "," not in content_encoding

but then you only inflate if:

    content_encoding == "deflate" or content_encoding == "gzip"

so do we really need to be checking for "stacked" content encodings at all?