Fix tiny bug.

This commit is contained in:
Matthew Chen 2020-08-19 17:13:08 -03:00
parent b83f684d6a
commit be4341b9de

View File

@ -212,6 +212,7 @@ public class OWSURLSession: NSObject {
verb: HTTPVerb,
headers: [String: String]? = nil,
body: Data? = nil) throws -> URLRequest {
let urlString = buildUrlString(urlString)
guard let url = URL(string: urlString, relativeTo: baseUrl) else {
throw OWSAssertionError("Invalid url.")
}