From 568393c941df58d6dc0b0cb3dc9488cb1e0d37f3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 11 Aug 2020 16:54:17 -0400 Subject: 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 --- klippy/extras/query_endstops.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'klippy/extras/query_endstops.py') 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: -- cgit v1.2.3-70-g09d2