mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Fix traceback when sending POST requests to the 404 error handler.
This commit is contained in:
parent
5275d708e5
commit
efc30a4ed2
@ -132,7 +132,7 @@ class SupyHTTPServerCallback:
|
||||
message, it probably means you are developping a plugin, and you have
|
||||
neither overriden this message or defined an handler for this query.""")
|
||||
|
||||
def doGet(self, handler, path):
|
||||
def doGet(self, handler, path, *args, **kwargs):
|
||||
handler.send_response(400)
|
||||
self.send_header('Content_type', 'text/plain')
|
||||
self.send_header('Content-Length', len(self.defaultResponse))
|
||||
@ -153,7 +153,7 @@ class Supy404(SupyHTTPServerCallback):
|
||||
if I don't know what to serve.
|
||||
What I'm saying is you just triggered a 404 Not Found, and I am not
|
||||
trained to help you in such a case.""")
|
||||
def doGet(self, handler, path):
|
||||
def doGet(self, handler, path, *args, **kwargs):
|
||||
handler.send_response(404)
|
||||
self.send_header('Content_type', 'text/plain')
|
||||
self.send_header('Content-Length', len(self.response))
|
||||
|
Loading…
Reference in New Issue
Block a user