On Tue, 2008-01-08 at 22:45 -0600, Gary Wilson Jr. wrote:
> Malcolm Tredinnick wrote:
> > Hey Gary,
> >
> > On Tue, 2008-01-08 at 00:35 -0600, Gary Wilson Jr. wrote:
> > [...]
> >> So, looking at a couple places in Django trunk where response.content is
> >> used,
> >> these look like bugs:
>
Malcolm Tredinnick wrote:
> Hey Gary,
>
> On Tue, 2008-01-08 at 00:35 -0600, Gary Wilson Jr. wrote:
> [...]
>> So, looking at a couple places in Django trunk where response.content is
>> used,
>> these look like bugs:
>>
>>
>> django.contrib.csrf.middleware.CsrfMiddleware.process_response:
>>
Hey Gary,
On Tue, 2008-01-08 at 00:35 -0600, Gary Wilson Jr. wrote:
[...]
> So, looking at a couple places in Django trunk where response.content is used,
> these look like bugs:
>
>
> django.contrib.csrf.middleware.CsrfMiddleware.process_response:
>
> def process_response(self, request,
Malcolm Tredinnick wrote:
> On Mon, 2008-01-07 at 18:28 -0600, Gary Wilson Jr. wrote:
>> Malcolm Tredinnick wrote:
>>> On Sun, 2008-01-06 at 15:25 -0600, Gary Wilson Jr. wrote:
It appears that at this point, response.content is a utf8-encoded
bytestring.
I'm playing with a
On Mon, 2008-01-07 at 18:28 -0600, Gary Wilson Jr. wrote:
> Malcolm Tredinnick wrote:
> > On Sun, 2008-01-06 at 15:25 -0600, Gary Wilson Jr. wrote:
> >> It appears that at this point, response.content is a utf8-encoded
> >> bytestring.
> >> I'm playing with a response middleware doing something
Malcolm Tredinnick wrote:
> On Sun, 2008-01-06 at 15:25 -0600, Gary Wilson Jr. wrote:
>> It appears that at this point, response.content is a utf8-encoded bytestring.
>> I'm playing with a response middleware doing something like:
>>
>> MY_RE.sub(u'%s' % text, response.content)
>>
>> which raises
On Sun, 2008-01-06 at 15:25 -0600, Gary Wilson Jr. wrote:
> It appears that at this point, response.content is a utf8-encoded bytestring.
> I'm playing with a response middleware doing something like:
>
> MY_RE.sub(u'%s' % text, response.content)
>
> which raises a UnicodeDecodeError if
It appears that at this point, response.content is a utf8-encoded bytestring.
I'm playing with a response middleware doing something like:
MY_RE.sub(u'%s' % text, response.content)
which raises a UnicodeDecodeError if response.content contains non-ascii.
I understand that the strings need to
8 matches
Mail list logo