You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a persistent connection (reusing curl), if the request body for a new request is not explicitly set, the body from the previous request is sent instead of being cleared. This behavior leads to unexpected data being transmitted, potentially causing incorrect results or data leakage.
How to Reproduce:
curl = Curl::Easy.new
curl.url = "https://webhook.site/get-your-testing-address"
curl.post('example data')
# HTTP body will be 'example data'
curl.post
# HTTP body will be 'example data' instead '' (nil)
Expected Behavior:
The body of the new request should be empty
Actual Behavior:
The body of the previous request is sent, resulting in unintended data being included in the new request
The text was updated successfully, but these errors were encountered:
Hi!
When using a persistent connection (reusing curl), if the request body for a new request is not explicitly set, the body from the previous request is sent instead of being cleared. This behavior leads to unexpected data being transmitted, potentially causing incorrect results or data leakage.
How to Reproduce:
Expected Behavior:
The body of the new request should be empty
Actual Behavior:
The body of the previous request is sent, resulting in unintended data being included in the new request
The text was updated successfully, but these errors were encountered: