algolia / algoliasearch-client-swift

⚡️ A fully-featured and blazing-fast Swift API client to interact with Algolia.
MIT License
205 stars 65 forks source link

fix(client configuration): default headers not applied #839

Closed VladislavFitz closed 11 months ago

VladislavFitz commented 11 months ago

Summary

The SearchConfiguration data class was not effectively applying its defaultHeaders in the client's request process. This led to a discrepancy between the configured headers and those actually used in requests.

Result

Adjusted the client's implementation to ensure that defaultHeaders from the SearchConfiguration are accurately applied to all outgoing requests. This update guarantees the intended header configuration is consistently respected in the client's operations.

Fixes CR4951.