checkout / checkout-sdk-net

Checkout SDK for Microsoft .NET
https://checkout.com
MIT License
21 stars 23 forks source link

fix: Do not use BaseAddress property of HttpClient, fixes #346 #364

Closed Antaris closed 8 months ago

Antaris commented 9 months ago

On .NET Framework, best practice is to re-use HttpClient, so using BaseAddress can cause the incorrect API URL to be used for different clients. Explicitly use the cached base address per-client when generating a HTTP request.

Note: Unsure on which branch to send PR

Supports issue: https://github.com/checkout/checkout-sdk-net/issues/346