Fixes potential exposure of applications that use RestSharp and allow users to provide header values to execute a request with CRLF in the header value possibly causing SSRF.
Purpose
This pull request is a:
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[X] Breaking change (fix or feature that would cause existing functionality to not work as expected)
It's breaking change since some users might be required to send invalid header values. Also, the new version is not binary-compatible with the previous version, so the fix will be released as a major version.
Description
Fixes potential exposure of applications that use RestSharp and allow users to provide header values to execute a request with CRLF in the header value possibly causing SSRF.
Purpose
This pull request is a:
It's breaking change since some users might be required to send invalid header values. Also, the new version is not binary-compatible with the previous version, so the fix will be released as a major version.