On 12/18/06, Michael Stenner <[EMAIL PROTECTED]> 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:

[EMAIL PROTECTED]:/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
_______________________________________________
Yum-devel mailing list
Yum-devel@linux.duke.edu
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to