             # Avoid empty usernames
             if not params.sharerName? or (params.sharerName is '')
                 params.sharerName = params.sharerUrl.replace "https://", ""
+
+            # Add https if not specified
+            url = addProtocol url
             # Send to recipient
             remote = request.createClient url
             remote.post path, params, (err, result, body) ->

user = new User()

replications = {}


# Called each time a change occurs in the _replicator db


# Send a revocation request to the specified url
module.exports.sendRevocation = (url, path, params, callback) ->
    # Add https if not specified
    url = addProtocol url
    remote = request.createClient url
    remote.del path, params, (err, result, body) ->
        handleNotifyResponse err, result, body, callback
