'Analyze results of the _send_mutant method.'

def _analyze_result(self, mutant, response):

    if self._has_bug(mutant):
        return
    if self._header_was_injected(mutant, response):
        desc = ('Response    splitting    was    found    at:    %s' % mutant.found_at())
        v = Vuln.from_mutant('Response    splitting    vulnerability', desc, severity.MEDIUM, response.id, self.get_name(), mutant)
        self.kb_append_uniq(self, 'response_splitting', v)
    for error in self.HEADER_ERRORS:
        if (error in response):
            desc = 'The    variable    "%s"    at    URL    "%s"    modifies    the    HTTP    response    headers,    but    this    error    was    sent    while    testing    for    response    splitting:    "%s".'
            args = (mutant.get_token_name(), mutant.get_url(), error)
            desc = (desc % args)
            i = Info.from_mutant('Parameter    modifies    response    headers', desc, response.id, self.get_name(), mutant)
            self.kb_append_uniq(self, 'response_splitting', i)
            return
