Skip to content

Commit

Permalink
fix(ABTesting): request header content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
YoloMao committed Dec 1, 2023
1 parent f58197a commit 7746de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/ABTesting/Request/GrowingABTRequestAdapter.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ + (instancetype)adapterWithRequest:(id<GrowingRequestProtocol>)request {

- (NSMutableURLRequest *)adaptedURLRequest:(NSMutableURLRequest *)request {
NSMutableURLRequest *needAdaptReq = request;
[needAdaptReq setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
[needAdaptReq setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
if (!self.parameters.count) {
return needAdaptReq;
}

Check warning on line 35 in Modules/ABTesting/Request/GrowingABTRequestAdapter.m

View check run for this annotation

Codecov / codecov/patch

Modules/ABTesting/Request/GrowingABTRequestAdapter.m#L34-L35

Added lines #L34 - L35 were not covered by tests
Expand Down

0 comments on commit 7746de0

Please sign in to comment.