Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for creating headers using Promise #553

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add support for creating headers using Promise #553

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 5, 2020

Hi!
In our application, we had an issue with race conditions between getting valid auth token and uploading chunks, especially for larger uploads.
The solution was to make headers accept a function that returns a promise.
This has been used in production on our site for some time now, seems to be stable and could be useful for others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant