Skip to content

Commit 5b58cbc

Browse files
Fixes #4
1 parent 2d184c1 commit 5b58cbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ public class Client {
107107
self.hostnames.insert("\(appID)-dsn.algolia.net", atIndex: 0)
108108
}
109109
}
110-
111-
let version = NSBundle(identifier: "com.algolia.AlgoliaSearch")!.infoDictionary!["CFBundleShortVersionString"] as! String
110+
111+
let version = NSBundle(forClass: self.dynamicType).infoDictionary!["CFBundleShortVersionString"] as! String
112112
var HTTPHeaders = [
113113
"X-Algolia-API-Key": self.apiKey,
114114
"X-Algolia-Application-Id": self.appID,

0 commit comments

Comments
 (0)