On Wed, Jul 28, 2010 at 12:37 PM, Gael Pasgrimaud <g...@gawel.org> wrote:
> On Wed, Jul 28, 2010 at 11:03 AM, Eric Lemoine
> <eric.lemo...@camptocamp.com> wrote:
>> Hello
>>
>> Does anyone know why jsonify does
>>
>> response.headers["Content-Type"] = "application/json"
>>
>> instead of
>>
>> response.content_type = "application/json"
>>
>> Is there a good reason for that?
>
> I don't think. That's two way to get exactly the same result.
> You probably win 0.0001s by setting the headers key directly.

Thanks Gaƫl.

For the record, my question was related to a ticket I was working on.
See <http://pylonshq.com/project/pylonshq/ticket/632>. I've got a
patch that I deem ready for review.


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-disc...@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to