#2280: @expose(content_type="text/plain") does not work
------------------------+---------------------------------------------------
 Reporter:  ondrejj     |       Owner:        
     Type:  defect      |      Status:  new   
 Priority:  normal      |   Milestone:  2.0rc1
Component:  TurboGears  |     Version:  2.0b7 
 Severity:  normal      |    Keywords:        
------------------------+---------------------------------------------------
 After making new quickstart template and adding this:

 {{{
     @expose(content_type="text/plain")
     def test(self):
         return 'a<br/>bx'
 }}}

 my content type of this test object is still "text/html" and in browser
 there is "a<newline>bx" instead of "a<br/>bx".
 It's possible to use:

 {{{
 pylons.response.headers['Content-Type'] = 'text/plain'
 }}}

 but I think this is too complicated.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2280>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to