Skip to content

don't send nil parameters to cloudflare#11

Merged
b4k3r merged 1 commit intosocketry:masterfrom
corbt:ignore-nil
Feb 7, 2015
Merged

don't send nil parameters to cloudflare#11
b4k3r merged 1 commit intosocketry:masterfrom
corbt:ignore-nil

Conversation

@corbt
Copy link
Copy Markdown
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