Hi list, I have made some changes to the keep-alive HTTP Handler. The changes are simple but necessary if you want this http handler to work well if combined with other handlers. Changes were applied against keepalive.py available at :
http://linux.duke.edu/projects/urlgrabber/download/urlgrabber-3.0.0.tar.gz [EMAIL PROTECTED]:~/tools/w3af/core/data/url$ diff keepalive.py /tmp/original-keepalive.py 306c306 < if not req.has_header('Content-type'): ---
if not req.headers.has_key('Content-type'):
309c309 < if not req.has_header('Content-length'): ---
if not req.headers.has_key('Content-length'):
320,321d319 < for k, v in req.unredirected_hdrs.items(): < h.putheader(k, v) By using has_header() instead of headers.has_key() the handler would also be checking for the header name in the unredirected_hdrs dict. Maybe someone could add this to the cvs version? Cheers, -- Andres Riancho http://w3af.sourceforge.net/ Web App Attack and Audit Framework http://www.securearg.net/ Secure from the source _______________________________________________ Yum-devel mailing list Yum-devel@linux.duke.edu https://lists.dulug.duke.edu/mailman/listinfo/yum-devel