Skip to content

Commit

Permalink
use dispatch_barrier_sync for header changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Mar 3, 2017
1 parent 4f3c694 commit 32760e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFNetworking/AFURLRequestSerialization.m
Expand Up @@ -312,7 +312,7 @@ - (NSDictionary *)HTTPRequestHeaders {
- (void)setValue:(NSString *)value
forHTTPHeaderField:(NSString *)field
{
dispatch_barrier_async(self.requestHeaderModificationQueue, ^{
dispatch_barrier_sync(self.requestHeaderModificationQueue, ^{
[self.mutableHTTPRequestHeaders setValue:value forKey:field];
});
}
Expand Down

0 comments on commit 32760e7

Please sign in to comment.