Skip to content

Commit

Permalink
Use endpoint token for image upload
Browse files Browse the repository at this point in the history
  • Loading branch information
hartlco committed Mar 29, 2020
1 parent dcca8c6 commit f426b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IcroKit/Network/MicropubRequestController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ final class MicropubRequestController {
completion: @escaping (ComposeViewModel.Image?, Error?) -> Void) {

let headers: HTTPHeaders = [
"Authorization": "Bearer \(UserSettings.shared.token)"
"Authorization": "Bearer \(endpoint.token)"
]

client.load(resource: MediaEndpoint.get(endpoint: endpoint)) { endpoint in
Expand Down

0 comments on commit f426b0f

Please sign in to comment.