Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix described in #21132 #21137

Closed
wants to merge 1 commit into from
Closed

Fix described in #21132 #21137

wants to merge 1 commit into from

Conversation

adospace
Copy link
Contributor

Before PR
NSUrlSessionHandler.Proxy property throws NSE when client code set any value (including null)
image

After PR
NSUrlSessionHandler.Proxy property throws NSE only when the client code tries to set a value different from null (Custom proxy is not supported right now in iOS implementation so setting a value other than null must throws NSE)
image

The reason behind the change is described in #21132

@rolfbjarne
Copy link
Member

Closing in favor of #21140 (which is a copy of this one), because our CI will only build pull requests from the origin repository.

@rolfbjarne rolfbjarne closed this Aug 28, 2024
rolfbjarne added a commit that referenced this pull request Aug 29, 2024
Before PR:

NSUrlSessionHandler.Proxy property throws NSE when client code set any value (including `null`):

![image](https://github.com/user-attachments/assets/bb273910-3519-490f-b5fd-1999327012b3)

After PR

NSUrlSessionHandler.Proxy property throws NSE only when the client code
tries to set a value different from `null` (Custom proxy is not
supported right now in iOS implementation so setting a value other than
null must throws NSE):

![image](https://github.com/user-attachments/assets/4a564785-3e23-469c-ac26-460d028cf770)

Fixes #21132.

PR originally submitted by @adospace in #21137.

Co-authored-by: adospace <[email protected]>
rolfbjarne pushed a commit that referenced this pull request Sep 2, 2024
…ndler.Proxy to null (#21147)

Before PR:

NSUrlSessionHandler.Proxy property throws NSE when client code set any value (including `null`):

![image](https://github.com/user-attachments/assets/bb273910-3519-490f-b5fd-1999327012b3)

After PR

NSUrlSessionHandler.Proxy property throws NSE only when the client code
tries to set a value different from `null` (Custom proxy is not
supported right now in iOS implementation so setting a value other than
null must throws NSE):

![image](https://github.com/user-attachments/assets/4a564785-3e23-469c-ac26-460d028cf770)

Fixes #21132.

PR originally submitted by @adospace in #21137.

Co-authored-by: adospace <[email protected]>

Backport of #21140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants