Skip to content
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

Confusing variable name in setRequestBody method #2635

Merged
merged 2 commits into from
Dec 30, 2021

Conversation

Mesar-Ali
Copy link
Contributor

@Mesar-Ali Mesar-Ali commented Nov 2, 2021

There are 2 methods, setRequestBody() and setRequestType()
argument variable name is same in both, that is requestType
for better code readability, it should be requestBody for setRequestBody()

@martinhsv
Copy link
Contributor

Hello @Mesar-Ali ,

If we are to make this change, https_client.h should probably also be modified to have the changed name in the function prototype.

Would you like to do that and adjust this pull request?

@Mesar-Ali
Copy link
Contributor Author

Thanks @martinhsv
I added commit for https_client.h file.

@martinhsv martinhsv merged commit 2de14cb into owasp-modsecurity:v3/master Dec 30, 2021
@martinhsv
Copy link
Contributor

Merged. Thanks @Mesar-Ali

martinhsv added a commit that referenced this pull request Dec 30, 2021
@Mesar-Ali
Copy link
Contributor Author

@martinhsv Thanks for merging, but info added to release notes looks incorrect here

@martinhsv
Copy link
Contributor

Yes, I realized the error almost immediately and corrected it. Thanks.

vladbukin pushed a commit to vladbukin/ModSecurity that referenced this pull request Apr 12, 2022
daixiang0 pushed a commit to daixiang0/ModSecurity that referenced this pull request Apr 24, 2022
leyao-daily pushed a commit to leyao-daily/ModSecurity that referenced this pull request Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants