On Wed, Jul 28, 2010 at 11:03 AM, Eric Lemoine <[email protected]> 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. -- Gael > > Thanks, > > -- > Eric Lemoine > > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel : 00 33 4 79 44 44 96 > Mail : [email protected] > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
