(self, response)
return 1
Returns true if the response is acceptable
Returns true if the response is acceptable
Returns true if the response is acceptable
def response_acceptable(self, response):
        """Returns true if the response is acceptable"""
        if response.status == 200:
            return 1
        if response.status in (301, 302):
            return 1
        if response.status != 206:
            return 0
        # If the flag is not set, it's unacceptable
        if not self.transport_flags.get('allow_partial_content'):
            return 0
        if response.msg['Content-Type'] != 'application/octet-stream':
            # Don't allow anything else to be requested as a range, it could
            # break the XML parser
            return 0
        return 1
def response_acceptable ( self , response ) : if response . status == 200 : return 1 if response . status in ( 301 , 302 ) : return 1 if response . status != 206 : return 0 # If the flag is not set, it's unacceptable if not self . transport_flags . get ( 'allow_partial_content' ) : return 0 if response . msg [ 'Content-Type' ] != 'application/octet-stream' : # Don't allow anything else to be requested as a range, it could # break the XML parser return 0 return 1