Skip to content

Commit 24eee5f

Browse files
author
Ken Lalonde
committed
Remove call to defunct handleBadUrl() method; raise HTTPNotFound instead. Closes patch 1119457.
1 parent 63995f1 commit 24eee5f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

WebKit/UnknownFileTypeServlet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from ServletFactory import ServletFactory
2+
import HTTPExceptions
23
import os, mimetypes, time
34

45
debug = 0
@@ -142,7 +143,7 @@ def serveContent(self, trans):
142143
try:
143144
f = open(filename, 'rb')
144145
except IOError:
145-
trans.application().handleBadURL(trans)
146+
raise HTTPExceptions.HTTPNotFound
146147
return
147148

148149
stat = os.fstat(f.fileno())

0 commit comments

Comments
 (0)