diff --git a/Sources/IdentityUser.swift b/Sources/IdentityUser.swift index 113f8c2..29cd8eb 100644 --- a/Sources/IdentityUser.swift +++ b/Sources/IdentityUser.swift @@ -217,7 +217,7 @@ public struct VOIdentityUser { } public func urlForPicture(_: String, fileExtension: String) -> URL { - URL(string: "\(url())/picture.\(fileExtension)?access_token=\(accessToken)")! + URL(string: "\(url())/picture\(fileExtension)?access_token=\(accessToken)")! } // MARK: - Payloads diff --git a/Sources/User.swift b/Sources/User.swift index 63ab41d..9b8c748 100644 --- a/Sources/User.swift +++ b/Sources/User.swift @@ -98,7 +98,7 @@ public struct VOUser { var components = URLComponents() components.queryItems = items let query = components.url!.query! - return URL(string: "\(urlForID(id))/picture.\(fileExtension)?\(query)")! + return URL(string: "\(urlForID(id))/picture\(fileExtension)?\(query)")! } // MARK: - Payloads