Message71227
What I think is that the AbstractHTTPHandler is grabbing the headers, in
the do_open() method, in an incorrect way.
Check the get_header() method from Request:
def get_header(self, header_name, default=None):
return self.headers.get(
header_name,
self.unredirected_hdrs.get(header_name, default))
What it's doing there is to grab the header from self.header, and if not
there use the one in self.unredirected_hdrs, and if not there return the
default.
So, to emulate this behaviour, in do_open() I just grabbed first the
unredirected headers, and then updated it with the normal ones.
See my simple patch I attach here, which solves the issue, and passes
all the tests also. |
|
Date |
User |
Action |
Args |
2008-08-16 16:47:18 | facundobatista | set | recipients:
+ facundobatista, orsenthil, zathras, BitTorment |
2008-08-16 16:47:18 | facundobatista | set | messageid: <1218905238.61.0.13929794889.issue2756@psf.upfronthosting.co.za> |
2008-08-16 16:47:17 | facundobatista | link | issue2756 messages |
2008-08-16 16:47:17 | facundobatista | create | |
|