Skip to content

[@azure-rest/core-client] Correctly handle allowInsecureConnection override#26413

Merged
xirzec merged 3 commits intoAzure:mainfrom
xirzec:coreRestAllowInsecureConnectionOverride
Jul 6, 2023
Merged

[@azure-rest/core-client] Correctly handle allowInsecureConnection override#26413
xirzec merged 3 commits intoAzure:mainfrom
xirzec:coreRestAllowInsecureConnectionOverride

Conversation

@xirzec
Copy link
Copy Markdown
Member

@xirzec xirzec commented Jul 6, 2023

Packages impacted by this PR

@azure-rest/core-client

Issues associated with this PR

Azure/autorest.typescript#1916

Describe the problem that is addressed by this PR

Since we were using spread syntax on RequestParameters if an undefined value was passed this would take precedence over the client option, which was not expected.

This PR switches the order of when the spread happens while still pulling the value from RequestParameters when present.

Are there test cases added in this PR? (If not, why?)

Yes!

@xirzec xirzec requested review from mpodwysocki and qiaozha July 6, 2023 19:02
@xirzec xirzec self-assigned this Jul 6, 2023
@xirzec xirzec added the Client This issue points to a problem in the data-plane of the library. label Jul 6, 2023
@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

@xirzec xirzec enabled auto-merge (squash) July 6, 2023 20:02
@xirzec xirzec merged commit bec4c42 into Azure:main Jul 6, 2023
@xirzec xirzec deleted the coreRestAllowInsecureConnectionOverride branch July 6, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Azure.Core Client This issue points to a problem in the data-plane of the library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants