aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/query_endstops.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-08-11 16:54:17 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-08-16 13:20:25 -0400
commit568393c941df58d6dc0b0cb3dc9488cb1e0d37f3 (patch)
tree8b7590d20a459b6eefe4b3214871e7f8d7adc62e /klippy/extras/query_endstops.py
parent7289af65609726b21d41f59de436a3ac7865e8b0 (diff)
downloadkutter-568393c941df58d6dc0b0cb3dc9488cb1e0d37f3.tar.gz
kutter-568393c941df58d6dc0b0cb3dc9488cb1e0d37f3.tar.xz
kutter-568393c941df58d6dc0b0cb3dc9488cb1e0d37f3.zip
webhooks: Remove "method" parameter from webhook requests
Don't require or use the "method" parameter of requests. This simplifies the interface. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/query_endstops.py')
-rw-r--r--klippy/extras/query_endstops.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/klippy/extras/query_endstops.py b/klippy/extras/query_endstops.py
index b7fc2d04..0bbb11c2 100644
--- a/klippy/extras/query_endstops.py
+++ b/klippy/extras/query_endstops.py
@@ -22,8 +22,6 @@ class QueryEndstops:
def get_status(self, eventtime):
return {'last_query': {name: value for name, value in self.last_state}}
def _handle_web_request(self, web_request):
- if web_request.get_method() != 'GET':
- raise web_request.error("Invalid Request Method")
gc_mutex = self.printer.lookup_object('gcode').get_mutex()
toolhead = self.printer.lookup_object('toolhead')
with gc_mutex: