Mercurial > hg > index.fcgi > www > www-1
comparison laterlinks2/laterlinks_app.py @ 67:49ca145627cb
laterlinks2: fix response code
author | paulo |
---|---|
date | Wed, 19 Nov 2014 15:32:16 -0800 |
parents | 9d3a95d80def |
children | f833a888c548 |
comparison
equal
deleted
inserted
replaced
0:e812f0cee4ad | 1:f6aec992e639 |
---|---|
152 response_code = "500 Internal Server Error" | 152 response_code = "500 Internal Server Error" |
153 response_type = "text/plain; charset=UTF-8" | 153 response_type = "text/plain; charset=UTF-8" |
154 | 154 |
155 try: | 155 try: |
156 response_body = main(environ) | 156 response_body = main(environ) |
157 response_code = "200 OK" | |
157 response_type = "text/html; charset=UTF-8" | 158 response_type = "text/html; charset=UTF-8" |
158 except LLError as e: | 159 except LLError as e: |
159 response_body = str(e) | 160 response_body = str(e) |
160 except: | 161 except: |
161 response_body = traceback.format_exc() | 162 response_body = traceback.format_exc() |