179 + } else if (reply->hasRawHeader("X-Click-Token")) {
What's below this line makes no sense at this point of the code flow. If this method is answering for the response to the HEAD request, then the program flow should not even attempt to parse the json.
179 + } else if (reply- >hasRawHeader( "X-Click- Token") ) {
What's below this line makes no sense at this point of the code flow. If this method is answering for the response to the HEAD request, then the program flow should not even attempt to parse the json.