Skip to content

Commit

Permalink
Protect followRedirects from public usage outside of STP (stripe#3491)
Browse files Browse the repository at this point in the history
## Summary
- This function should not be public.

## Motivation
https://stripe.slack.com/archives/C06SHF7KHQC/p1712357089770979

## Testing
Project compiled

## Changelog
N/A
  • Loading branch information
porter-stripe authored Apr 5, 2024
1 parent 260a04a commit 51c7fe4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ public class STPPaymentHandler: NSObject {
}
}

public func followRedirects(to url: URL, urlSession: URLSession) -> URL {
@_spi(STP) public func followRedirects(to url: URL, urlSession: URLSession) -> URL {
let urlRequest = URLRequest(url: url)
let blockingDataTaskSemaphore = DispatchSemaphore(value: 0)

Expand Down

0 comments on commit 51c7fe4

Please sign in to comment.