@staticmethod
    def decode_return_content(res, response=None):
        if 'content-type' in res.headers and res.headers['content-type'] == "application/bson":
            tmp = decode_bson(res.content)
            if response is not None:
                response_server = BiiResponse.deserialize(tmp["info"])
                response_server.biiout(response)
            return tmp["return"]
        else:
            return res.content
dataset/ETHPy150Open biicode/client/rest/bii_rest_api_client.py/BiiRestApiClient.decode_return_content/original