Skip to content

iOS Tutorial urlRequest.setValue() incorrect use in docs #143

Closed Answered by Richenglish
Richenglish asked this question in General help
Discussion options

You must be logged in to vote

I've solved the issue I was having.

In the tutorial, the line
urlRequest.setValue(apiKey, forHTTPHeaderField: "Authorization")

should be
urlRequest.setValue("Token \(apiKey)", forHTTPHeaderField: "Authorization")

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Richenglish
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants