iOS-MAS-Foundation
iOS-MAS-Foundation copied to clipboard
Fixed pass headers in Invoke with taskBlock
When using the
+ (void)invoke:(nonnull MASRequest *)request taskBlock:(nullable MASDataTaskBlock)taskBlock completion:(nullable MASResponseObjectErrorBlock)completion;
function passed headers not send, while they are used in the other invoke function:
+ (void)invoke:(nonnull MASRequest *)request completion:(nullable MASResponseObjectErrorBlock)completion;
This PR solves that problem.