File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 130
130
#define k_is_shown_help_link_on_login NO
131
131
#define k_url_link_on_login @"https://owncloud.com/mobile/new"
132
132
133
- //User-Agent
134
- #define k_user_agent @"Mozilla/5.0 (iOS) ownCloud-iOS/"
133
+ //User-Agent, Mozilla/5.0 (iOS) ownCloud-iOS/<appVersion> <ob_customUserAgent>
134
+ #define k_user_agent @"Mozilla/5.0 (iOS) ownCloud-iOS/$appVersion "
135
135
136
136
//Enable/Disable Background uploads and download (NSURLSession or NSOperation)
137
137
#define k_is_background_active YES
Original file line number Diff line number Diff line change @@ -559,7 +559,7 @@ + (NSString *)getFullRemoteServerParentPathByFile:(FileDto *) file andUser:(User
559
559
560
560
+ (NSString *) getUserAgent {
561
561
NSString *appVersion = [[NSBundle mainBundle ] objectForInfoDictionaryKey: @" CFBundleShortVersionString" ];
562
- NSString *userAgentWithAppVersion = [NSString stringWithFormat: @" %@%@ " , k_user_agent, appVersion];
562
+ NSString *userAgentWithAppVersion = [NSString stringWithFormat: @" %@ " ,[ k_user_agent stringByReplacingOccurrencesOfString: @" $ appVersion" withString: appVersion] ];
563
563
564
564
return userAgentWithAppVersion;
565
565
You can’t perform that action at this time.
0 commit comments