Added check for empty params at the line before that parts which parse the params into JSON Body. This will prevent 'Error Domain=NSURLErrorDomain Code=-1017' error from being happened
Added check for empty params at the line before that parts which parse the params into JSON Body. This will prevent 'Error Domain=NSURLErrorDomain Code=-1017' error from being happened

saintc0d3r/learn-swift-for-ios