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

information request: long polling seem's bugged on 304 http status code. #3925

Conversation

floriangasc
Copy link
Contributor

Signed-off-by: Gasc Florian florian.gasc@gmail.com
Fixes #3923

Copy link
Member

@ashutosh-narkar ashutosh-narkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the fix @floriangasc! What do you think about adding a new field on the Downloader object to keep of the long poll status ? We would set it in the oneShot method based on the response from the download method. Then on a 304 we would return longPoll: d.longPoll instead of longPoll: isLongPollSupported(resp.Header).

Signed-off-by: Gasc Florian <florian.gasc@gmail.com>
Fixes: open-policy-agent#3923
@floriangasc floriangasc force-pushed the little-work-on-bunle-downloader branch from f07d223 to 78c2337 Compare October 25, 2021 17:38
@floriangasc floriangasc deleted the little-work-on-bunle-downloader branch October 25, 2021 17:38
@floriangasc
Copy link
Contributor Author

floriangasc commented Oct 25, 2021

Hi @ashutosh-narkar

Thank's for quick reply.

I have response on another P.R:r: #3926.

Please, excuse me for this.

@floriangasc floriangasc restored the little-work-on-bunle-downloader branch October 25, 2021 17:54
@floriangasc floriangasc deleted the little-work-on-bunle-downloader branch October 25, 2021 17:55
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.

information request: long polling seem's bugged on 304 http status code.
2 participants