Skip to content


Request http body is required in PDNetworkDomainController #25

gr4yscale opened this Issue · 1 comment

3 participants


Hi guys, when trying to make a request that has no HTTP body, we get a crash in PDNetworkDomainController.

The fix was simply a matter of changing this line:

if (contentType && [contentType rangeOfString:@"json"].location != NSNotFound) {

to this:

if (body && contentType && [contentType rangeOfString:@"json"].location != NSNotFound) {

I was going to submit a pull request, but didn't see the option so I guess you guys aren't taking pull requests at this time. Just wanted to let you guys know.

INCREDIBLE work, by the way. I'm a big fan of square and everything they're doing.


@gr4yscale Thanks for this find. We do take pull requests. Github just moved the button. It is on top now in the center. Please make sure to sign the CLA as well.

@wlue wlue closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.