Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 34255e2

Browse files
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‎

Lines changed: 3 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /