Committed by
Ben Copsey
Use both CFBundleShortVersionString and CFBundleVersion when constructing the User-Agent header.
Signed-off-by: Ben Copsey <ben@allseeing-i.com>
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -2465,7 +2465,8 @@ static NSRecursiveLock *delegateAuthenticationLock = nil; | @@ -2465,7 +2465,8 @@ static NSRecursiveLock *delegateAuthenticationLock = nil; | ||
2465 | if (!appName) { | 2465 | if (!appName) { |
2466 | return nil; | 2466 | return nil; |
2467 | } | 2467 | } |
2468 | - NSString *appVersion = [bundle objectForInfoDictionaryKey:@"CFBundleVersion"]; | 2468 | + NSString *appVersion = [[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"] stringByAppendingFormat:@" (%@)", |
2469 | + [bundle objectForInfoDictionaryKey:@"CFBundleVersion"]]; | ||
2469 | NSString *deviceName;; | 2470 | NSString *deviceName;; |
2470 | NSString *OSName; | 2471 | NSString *OSName; |
2471 | NSString *OSVersion; | 2472 | NSString *OSVersion; |
-
Please register or login to post a comment