#76 Error reporting

closed-accepted
nobody
WebKit (45)
5
2006-11-03
2006-10-17
Veros Kaplan
No

Default HTTPResponse doesn§t sent status 500 in case of
exception.

--- WebKit/HTTPResponse.py~ 2006-02-09
00:59:25.771571112 +0100
+++ WebKit/HTTPResponse.py 2006-02-09
00:59:32.088610776 +0100
@@ -277,6 +277,8 @@
"""
if debug: print "HTTPResponse commit"
self.recordSession()
+ if self._transaction.errorOccurred():
+ self.setStatus(500, 'Error
occurred')
self.writeHeaders()
self._committed = 1
self._strmOut.commit()

Discussion

    • status: open --> open-accepted
     
  • Logged In: YES
    user_id=193957

    Makes sense to me; checked it in.

     
    • status: open-accepted --> closed-accepted