[patch] add extra http headers to request

Mauricio Teixeira mteixeira at webset.net
Thu Nov 22 11:39:51 PST 2007


On Thu, 2007-11-22 at 15:36 -0200, Gustavo Niemeyer wrote:

>     fetcher.enqueue(url, http_headers={...})

Could you check the attached solution?

That way you can do like this:

item = fetcher.enqueue(repomd, http_headers=http_headers)

Now I need to play with PyCurl. :)

-- 
% Mauricio Teixeira (netmask) | Sao Paulo/SP/BR      %
% mteixeira{a}webset{d}net    | http://smartpm.org   %
% http://mteixeira.webset.net | http://pmping.sf.net %

NOTE: This is my personal e-mail account. I do NOT use
it to speak for my employer or any of my co-workers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetcher-add-headers-v2.patch
Type: text/x-patch
Size: 1330 bytes
Desc: not available
URL: <http://lists.labix.org/pipermail/smart-labix.org/attachments/20071122/1de56255/attachment-0003.bin>


More information about the Smart mailing list