We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4dfa01 commit e3a4787Copy full SHA for e3a4787
FirebaseVertexAI/Sources/GenerativeAIService.swift
@@ -195,9 +195,9 @@ struct GenerativeAIService {
195
196
if firebaseInfo.app.isDataCollectionDefaultEnabled {
197
urlRequest.setValue(firebaseInfo.googleAppID, forHTTPHeaderField: "X-Firebase-AppId")
198
- let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ??
199
- "unknown"
200
- urlRequest.setValue(appVersion, forHTTPHeaderField: "X-Firebase-AppVersion")
+ if let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String {
+ urlRequest.setValue(appVersion, forHTTPHeaderField: "X-Firebase-AppVersion")
+ }
201
}
202
203
let encoder = JSONEncoder()
0 commit comments