From 0c3b64add2e2de4e8b869a18a31807a8350e0590 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Tue, 16 Jun 2020 11:23:02 +0200 Subject: [PATCH] client: remove outdated comment in Index.submit Code is not using request since 8 years :) --- splunklib/client.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/splunklib/client.py b/splunklib/client.py index 39b1dcc34..286719c5e 100644 --- a/splunklib/client.py +++ b/splunklib/client.py @@ -2086,10 +2086,6 @@ def submit(self, event, host=None, source=None, sourcetype=None): if source is not None: args['source'] = source if sourcetype is not None: args['sourcetype'] = sourcetype - # The reason we use service.request directly rather than POST - # is that we are not sending a POST request encoded using - # x-www-form-urlencoded (as we do not have a key=value body), - # because we aren't really sending a "form". self.service.post(PATH_RECEIVERS_SIMPLE, body=event, **args) return self