pull/296/head
nielsandriesse 5 years ago
parent 07a3d61242
commit 62b2fa112b

@ -11,7 +11,7 @@ public enum OnionRequestAPI {
/// The number of snodes (including the guard snode) in a path. /// The number of snodes (including the guard snode) in a path.
private static let pathSize: UInt = 3 private static let pathSize: UInt = 3
/// The number of times a path can fail before it's replaced. /// The number of times a path can fail before it's replaced.
private static let pathFailureThreshold: UInt = 2 private static let pathFailureThreshold: UInt = 3
/// The number of paths to maintain. /// The number of paths to maintain.
public static let targetPathCount: UInt = 2 public static let targetPathCount: UInt = 2
@ -313,8 +313,8 @@ public enum OnionRequestAPI {
} }
let payload: JSON = [ let payload: JSON = [
"body" : parametersAsString, "body" : parametersAsString,
"endpoint": endpoint, "endpoint" : endpoint,
"method" : request.httpMethod, "method" : request.httpMethod!,
"headers" : headers "headers" : headers
] ]
let destination = Destination.server(host: host, x25519PublicKey: x25519PublicKey) let destination = Destination.server(host: host, x25519PublicKey: x25519PublicKey)

Loading…
Cancel
Save