You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's see the part of ImageUpload example from README.md.
let header:[String:String] = ["Authorization":"Client-ID"]
In this case the header key is "Authorization" and the value is "Client-ID".
When the request is sent, the server gets this header in reversed order, so the key is "Client-ID" and the value is "Authorization".
In short: value: key instead of key:value
Fix:
Gem/Gem.swift:110
Should be: request.addValue(headerDetail.value, forHTTPHeaderField: headerDetail.key)
P.s.: Please specify CONTRIBUTING.md file to clarify the process of contribution.
The text was updated successfully, but these errors were encountered:
I'm using the 1.0.3 version of the library.
Let's see the part of
ImageUpload
example from README.md.let header:[String:String] = ["Authorization":"Client-ID"]
In this case the header key is
"Authorization"
and the value is"Client-ID"
.When the request is sent, the server gets this header in reversed order, so the key is
"Client-ID"
and the value is"Authorization"
.In short:
value: key
instead ofkey:value
Fix:
Gem/Gem.swift:110
Should be:
request.addValue(headerDetail.value, forHTTPHeaderField: headerDetail.key)
P.s.: Please specify CONTRIBUTING.md file to clarify the process of contribution.
The text was updated successfully, but these errors were encountered: