#7: Be able to specify a content-type via expose
------------------------+---------------------------------------------------
 Reporter:  kevin       |        Owner:  anonymous
     Type:  defect      |       Status:  reopened 
 Priority:  normal      |    Milestone:  0.9a5    
Component:  TurboGears  |      Version:           
 Severity:  normal      |   Resolution:           
 Keywords:              |  
------------------------+---------------------------------------------------
Changes (by anonymous):

  * status:  closed => reopened
  * resolution:  fixed =>
  * milestone:  0.8 => 0.9a5

Comment:

 I tried the @expose(content_type="image/png") decorator in my method that
 generates PNG's with PIL but TurboGears 0.9a4 still returned the "Content-
 Type: text/html" header.

 I had to revert to using
 cherrypy.response.headerMap['Content-Type']="image/png"

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/7>
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.
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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to