borchero / Squid

Declarative and Reactive Networking for Swift.

Home Page:https://squid.borchero.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request headers not updating when retrying

jedwardblack opened this issue · comments

I am using the retrier and updating the stateful service that provides the accessToken & refreshToken values exactly as is shown in your example, but the retried request always uses the values from the original request, not the updated values.

Is there any way to change the header values before retrying the request?

The issue was that Future caches the value that it first returned so the request was not built again ... it is fixed now, I'll draft a new release shortly.