'This method verifies if a header was successfully injected
:param mutant: The mutant that was sent to generate the response
:param response: The HTTP response where I want to find the injected
header.
:return: True / False'

def _header_was_injected(self, mutant, response):

    headers = response.get_lower_case_headers()
    for (header, value) in headers.items():
        if ((HEADER_NAME in header) and (value.lower() == HEADER_VALUE)):
            return True
        elif ((HEADER_NAME in header) and (value.lower() != HEADER_VALUE)):
            msg = 'The    vulnerable    header    was    added    to    the    HTTP    response,    but    the    value    is    not    what    w3af    expected    (%s:    %s).    Please    verify    manually.'
            msg = (msg % (HEADER_NAME, HEADER_VALUE))
            om.out.information(msg)
            i = Info.from_mutant('Parameter    modifies    response    headers', msg, response.id, self.get_name(), mutant)
            self.kb_append_uniq(self, 'response_splitting', i)
            return False
    return False
