Skip to content

Commit 0c3b64a

Browse files
committed
client: remove outdated comment in Index.submit
Code is not using request since 8 years :)
1 parent 13f07cd commit 0c3b64a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

splunklib/client.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,10 +2086,6 @@ def submit(self, event, host=None, source=None, sourcetype=None):
20862086
if source is not None: args['source'] = source
20872087
if sourcetype is not None: args['sourcetype'] = sourcetype
20882088

2089-
# The reason we use service.request directly rather than POST
2090-
# is that we are not sending a POST request encoded using
2091-
# x-www-form-urlencoded (as we do not have a key=value body),
2092-
# because we aren't really sending a "form".
20932089
self.service.post(PATH_RECEIVERS_SIMPLE, body=event, **args)
20942090
return self
20952091

0 commit comments

Comments
 (0)