diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-08-11 16:54:17 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-08-16 13:20:25 -0400 |
commit | 568393c941df58d6dc0b0cb3dc9488cb1e0d37f3 (patch) | |
tree | 8b7590d20a459b6eefe4b3214871e7f8d7adc62e /klippy/extras/query_endstops.py | |
parent | 7289af65609726b21d41f59de436a3ac7865e8b0 (diff) | |
download | kutter-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.py | 2 |
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: |