'Tests an URL for RFD vulnerabilities.
:param freq: A FuzzableRequest'

def audit(self, freq, orig_response):

    ct = ''
    orig_headers = orig_response.headers
    if ('content-type' in orig_headers):
        ct = orig_headers['content-type'].split(';')[0]
    if ('content-disposition' in orig_headers):
        cd = orig_headers['content-disposition']
        if ('filename' in cd):
            om.out.debug((u'URL    "%s"    is    not    vulnerable    to    RFD    because    of    explicit    filename    in    content-disposition    header,    response    id    %s' % (freq.get_url(), orig_response.id)))
            return
        else:
            self._test(freq)
    elif (ct in NOT_VULNERABLE_TYPES):
        om.out.debug((u'URL    "%s"    is    not    vulnerable    to    RFD    because    response    content-type    is    "%s"    and    content-disposition    header    is    missing,    response    id    %s' % (freq.get_url(), ct, orig_response.id)))
        return
    else:
        self._test(freq)
