Skip to content

Commit

Permalink
Merge pull request #329 from xrmx/index-submit-outdated-comment
Browse files Browse the repository at this point in the history
client: remove outdated comment in Index.submit
  • Loading branch information
ashah-splunk authored Dec 8, 2021
2 parents c9245b1 + 0c3b64a commit 7e35282
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions splunklib/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2115,10 +2115,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

Expand Down

0 comments on commit 7e35282

Please sign in to comment.