Skip to content

Commit

Permalink
chore: remove beta field from http header
Browse files Browse the repository at this point in the history
  • Loading branch information
uerceg committed Aug 2, 2024
1 parent 54db48b commit 9b03612
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Adjust/Internal/ADJRequestHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ - (void)handleResponseWithData:(NSData *)data
request.HTTPMethod = @"POST";
[request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
[request setValue:clientSdk forHTTPHeaderField:@"Client-Sdk"];
[request setValue:@"2" forHTTPHeaderField:@"Beta-Version"];
// in case of beta release, specify build version here
// [request setValue:@"2" forHTTPHeaderField:@"Beta-Version"];

NSMutableArray<NSString *> *kvParameters =
[NSMutableArray arrayWithCapacity:mergedParameters.count];
Expand Down Expand Up @@ -467,7 +468,8 @@ - (void)handleResponseWithData:(NSData *)data
request.timeoutInterval = self.requestTimeout;
request.HTTPMethod = @"GET";
[request setValue:clientSdk forHTTPHeaderField:@"Client-Sdk"];
[request setValue:@"1" forHTTPHeaderField:@"Beta-Version"];
// in case of beta release, specify build version here
// [request setValue:@"2" forHTTPHeaderField:@"Beta-Version"];
return request;
}

Expand Down

0 comments on commit 9b03612

Please sign in to comment.