Thanks to visit codestin.com
Credit goes to github.com

Skip to content

client: remove outdated comment in Index.submit #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions splunklib/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down