Skip to content

don't send nil parameters to cloudflare #11

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
Feb 7, 2015
Merged

Conversation

corbt
Copy link
Contributor

@corbt corbt commented Feb 7, 2015

Recently some of my CloudFlare API requests started getting rejected. I traced it to the fact that this library sends parameters with nil arguments, and for many of the commands the library's implementation causes all unset parameters are passed with no argument.

This pull request prevents nil parameters from being passed on to CloudFlare. I've checked the CloudFlare API docs, and there is no defined behavior for setting any parameter without a value anyway, so this change shouldn't cause a problem.

b4k3r added a commit that referenced this pull request Feb 7, 2015
Don't send nil parameters to cloudflare
@b4k3r b4k3r merged commit 52344c9 into socketry:master Feb 7, 2015
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