logstash-plugins / logstash-filter-http

HTTP Filter Plugin for Logstash
Apache License 2.0
12 stars 29 forks source link

Don't process response when the body is empty. #50

Closed lazaroofarrill closed 8 months ago

lazaroofarrill commented 1 year ago

What does this PR do?

Return from process_response if the body is empty. Don't process response when the body is empty.

Why is it important/What is the impact to the user?

This PR fixes the issue that would cause the filter to throw when receiving an empty body in the response. At the moment, when an server returns an empty body, a common example being the result of a DELETE request, the pipeline crashes. When the body is empty the process_response function should return immediately.

Checklist

Related issues

Closes #25

cla-checker-service[bot] commented 1 year ago

💚 CLA has been signed

jsvd commented 8 months ago

@logstashmachine bump patch