Skip to content

Commit

Permalink
Update TimAFAppConnectClient.m
Browse files Browse the repository at this point in the history
fix headerfields bug
  • Loading branch information
tpctt authored Nov 15, 2017
1 parent 9e0394e commit b5f15c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Classes/TimAFAppConnectClient/TimAFAppConnectClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,10 @@ - (NSURLSessionDataTask *)POST:(NSString *)URLString

}
if (self.addHTTPHeaderFields) {
[request setValuesForKeysWithDictionary:self.addHTTPHeaderFields];
NSMutableDictionary *headerFields =[request.allHTTPHeaderFields mutableCopy];
[headerFields addEntriesFromDictionary:self.addHTTPHeaderFields];

request.allHTTPHeaderFields = headerFields;

}

Expand Down

0 comments on commit b5f15c2

Please sign in to comment.