Fix incorrect key

pull/12/head
Niels Andriesse 7 years ago
parent 8ca43bb614
commit 39ae2f462d

@ -58,7 +58,7 @@ import PromiseKit
}
public static func ping(_ hexEncodedPublicKey: String) -> Promise<RawResponse> {
return getRandomSnode().then { invoke(.sendMessage, on: $0, with: [ "destination" : hexEncodedPublicKey ]) } // TODO: Use getSwarm() and figure out correct parameters
return getRandomSnode().then { invoke(.sendMessage, on: $0, with: [ "pubKey" : hexEncodedPublicKey ]) } // TODO: Use getSwarm() and figure out correct parameters
}
public static func getSwarm(for hexEncodedPublicKey: String) -> Promise<Set<Target>> {

@ -197,7 +197,7 @@ NSString *const kNSNotificationName_IsCensorshipCircumventionActiveDidChange =
// Disable default cookie handling for all requests.
sessionManager.requestSerializer.HTTPShouldHandleCookies = NO;
// LOKI: We need to accept text/plain for now as the storage server returns this to us
// Loki: We need to accept text/plain for now as the storage server returns this to us
sessionManager.responseSerializer.acceptableContentTypes = [sessionManager.responseSerializer.acceptableContentTypes setByAddingObject:@"text/plain"];
return sessionManager;

Loading…
Cancel
Save