Taylor icon indicating copy to clipboard operation
Taylor copied to clipboard

Incorrect number of parameters

Open mihai8804858 opened this issue 8 years ago • 1 comments

Signing.swift:95 Method 'httpBody(parameters:encoding:)' has 4 parameters. The allowed number of parameters is 3
open static func httpBody(for parameters: [String: String], encoding: String.Encoding = .utf8) -> Data? {
    let combine: (String, String) -> String = { key, value in
        return rfc3986encode(key) + "=" + rfc3986encode(value)
    }

    return parameters.map(combine).joined(separator: "&").data(using: encoding)
}

mihai8804858 avatar Aug 03 '17 15:08 mihai8804858

@mihai8804858 Thank you for reporting it! @S2dentik Is this something you'd be interested in? 😋

thelvis4 avatar Aug 07 '17 14:08 thelvis4