[Yum-devel] [UG] keepalive.py
Andres Riancho
andres.riancho at gmail.com
Mon Dec 18 20:52:12 UTC 2006
On 12/18/06, Michael Stenner <mstenner at linux.duke.edu> wrote:
> My question is: will it work better for 2.3, 2.4 and 2.5?
Havent really tested this.
> Also, please
> send me forward unified diffs, like so:
>
> diff -u keepalive.py.orig keepalive.py > header_patch.diff
Just some lines, so it's inline:
dz0 at dz0cybsec:/tmp/diff$ diff -u keepalive.py.orig keepalive.py.mod
--- keepalive.py.orig 2006-07-20 17:15:58.000000000 -0300
+++ keepalive.py.mod 2006-12-18 17:48:56.000000000 -0300
@@ -303,10 +303,10 @@
if req.has_data():
data = req.get_data()
h.putrequest('POST', req.get_selector())
- if not req.headers.has_key('Content-type'):
+ if not req.has_header('Content-type'):
h.putheader('Content-type',
'application/x-www-form-urlencoded')
- if not req.headers.has_key('Content-length'):
+ if not req.has_header('Content-length'):
h.putheader('Content-length', '%d' % len(data))
else:
h.putrequest('GET', req.get_selector())
@@ -316,6 +316,8 @@
for args in self.parent.addheaders:
h.putheader(*args)
for k, v in req.headers.items():
+ h.putheader(k, v )
+ for k, v in req.unredirected_hdrs.items():
h.putheader(k, v)
h.endheaders()
if req.has_data():
> Things have changed in keepalive since then and the diff you sent
> doesn't apply any more.
Do you want me to modify the cvs version of keepalive.py and send a
diff of that version ?
> Alternatively, give me a little context on ....
The unified diff should clarify your questions.
Cheers,
--
Andres Riancho
http://w3af.sourceforge.net/ Web App Attack and Audit Framework
http://www.securearg.net/ Secure from the source
More information about the Yum-devel
mailing list