File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Sources/RecombeeClient/ApiClient Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ https://github.com/recombee/swift-api-client
4646Alternatively, in ` Package.swift ` :
4747
4848``` swift
49- .package (url : " https://github.com/recombee/swift-api-client" , from : " 5.0.0 " )
49+ .package (url : " https://github.com/recombee/swift-api-client" , from : " 5.0.1 " )
5050```
5151
5252Then add to your target dependencies:
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ public class RecombeeClient {
9696 urlRequest. httpMethod = request. method. rawValue
9797 urlRequest. timeoutInterval = request. timeout
9898 urlRequest. addValue ( " application/json " , forHTTPHeaderField: " Content-Type " )
99+ urlRequest. addValue ( " recombee-swift-api-client/5.0.1 " , forHTTPHeaderField: " User-Agent " )
99100
100101 if let body = request. bodyParameters {
101102 urlRequest. httpBody = try JSONEncoder ( ) . encode ( AnyCodable ( body) )
You can’t perform that action at this time.
0 commit comments