Skip to content

Commit

Permalink
change init of strings map in iOS (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopheTremblay authored Apr 12, 2024
1 parent 3a18660 commit 2ed7dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trikot-http/swift-extensions/TrikotHttpResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class TrikotHttpResponse: NSObject, HttpResponse {

@objc
public init(data: Data?, response: URLResponse?) {
var headers = [String: String]()
var headers: [String: String] = [:]
source = HttpResponseResponseSource.unknown
if let response = response as? HTTPURLResponse {
response.allHeaderFields.forEach {(arg) in
Expand Down

0 comments on commit 2ed7dbc

Please sign in to comment.