Ticket #207 (new enhancement)

Opened 3 months ago

Last modified 3 months ago

Stop using start_response

Reported by: pvalsecc Assigned to: pvalsecc
Priority: trivial Milestone:
Component: Print.server Version: SVN
Keywords: Cc:
State:

Description (Last modified by pvalsecc)

In the pylons controllers' actions, if one uses stuff like that:

self.start_response('500 Java error', [
                    ('Content-Type','text/plain; charset=utf-8')])

pylons send the response byte by byte, which has a huge impact on performance.

Must use that instead:

response.status = 500
response.headers['content-type'] = 'text/plain; charset=utf-8'

Change History

08/15/08 10:56:09 changed by pvalsecc

  • description changed.