algolia / algoliasearch-client-java

⚡️ A fully-featured and blazing-fast Java API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/java/
MIT License
47 stars 33 forks source link

fix(HttpRequester): use body supplier #774

Closed aallam closed 2 years ago

aallam commented 2 years ago
Q A
Bug fix? yes
New feature? no
BC breaks? no
Related Issue Fix #773
Need Doc update no

Describe your change

Instead of using the same InputStream, we use a Supplier<InputStream>, which produces a new InputStream at every retry attempt.