Lilo Lu
Lilo Lu

Reputation: 163

alamofire how to use taskWillPerformHTTPRedirection

i use alamofire to handle http request but receive nil

and the url has a server http redirect , how can i use taskWillPerformHTTPRedirection to allow perform http redirection .

then i can receive the result.

Upvotes: 0

Views: 629

Answers (1)

cnoon
cnoon

Reputation: 16663

This is not something that is currently possible. Here's a detailed issue on the Github project site that walks through the problem. There are also two open pull requests, PR1 and PR2, that attempt to address this problem if you wish to work off a fork temporarily.

Upvotes: 1

Related Questions