Skip to content

Commit 34255e2

Browse files
committed
Update ReplicateAPI.swift
1 parent 2595a61 commit 34255e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/replicate-kit-swift/ReplicateAPI.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ fileprivate func sessionCfg (_ token : String) -> URLSessionConfiguration{
223223
let config = URLSessionConfiguration.default
224224

225225
config.httpAdditionalHeaders = [
226-
"Authorization": "Bearer \(token)",
227-
"application/json" : "Accept"
226+
"Authorization": "Token \(token)",
227+
"Accept" : "application/json",
228+
"Content-Type" : "application/json",
228229
]
229230

230231
return config

0 commit comments

Comments
 (0)