'Set-up the _decoder attribute if necessar.'

def _init_decoder(self):

    content_encoding = self.headers.get('content-encoding', '').lower()
    if ((self._decoder is None) and (content_encoding in self.CONTENT_DECODERS)):
        self._decoder = _get_decoder(content_encoding)
