Skip to content

Commit

Permalink
fix: picture endpoint, remove extension dot
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba committed Oct 21, 2024
1 parent fa5743c commit af1b387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/IdentityUser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/User.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af1b387

Please sign in to comment.