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
#1305 RateLimiting headers #1307
base: develop
Are you sure you want to change the base?
#1305 RateLimiting headers #1307
Conversation
finnaly |
+1 to get this merged. This is stopping me being able to update a project to net6.0 + Ocelot v18 |
This comment was marked as off-topic.
This comment was marked as off-topic.
+1 We need this fix as well |
update develop
72da5b1
to
1060ef9
Compare
The feature branch has been rebased onto ThreeMammals:develop! We can start the code review... |
This comment was marked as off-topic.
This comment was marked as off-topic.
@jackletter commented on Oct 24, 2020:
Is this a result of code review (testing)? P.S. Don't write non-English messages please! |
Great! Please inform me once the development is complete. And I'll invite another team members to review... |
Hello Ms. J, thank you for your proactivity! |
Sorry, but I'm not sure how to rebase, I haven't done it before. Do you mean "Sync fork" on the branch and "Discard 15 commits"? And make changes again to this branch manually? I think resolving conflicts using merge from develop would be easier and more readable, because it preserves the history. |
Apologies, I was mistaken! Rebasing is not the recommended method for resolving conflicts after extensive refactoring. A manual approach is preferable. Also, avoid using the Sync fork button for feature branches, as it poses a high risk of losing changes on the origin.
I wouldn't advise a simple merge from develop. And simple merge from target branch doesn't guarantee linear history )) 1st StepThe current situation with your develop:
Use Sync Fork to resolve the problem! 2nd StepIf you're up for this git challenge, here's my understanding:
|
Merge from upstream repository
…ing-headers # Conflicts: # src/Ocelot/RateLimiting/Middleware/RateLimitingMiddleware.cs # test/Ocelot.AcceptanceTests/ClientRateLimitTests.cs # test/Ocelot.UnitTests/RateLimit/ClientRateLimitMiddlewareTests.cs
I've resolved conflicts using my method - by doing the merge. I've never had any major problems with it. |
It's up to you! Merge-commits aren't an issue since we use the Squash option when merging PRs into develop. However, merge-commits become problematic with the classic merge-commit method, leading to a non-linear history issue. Please ensure your develop branch is updated and matches the head repository. Currently, there's a discrepancy in commits:
If you're unsure how to sync your develop branch with the head repository, consider adding me as a temporary contributor, and I'll use the Sync fork button to align them. |
Fixes #1305
"DisableRateLimitHeaders": false
is not showingX-Rate-Limit
andRetry-After
headers in response #1305Proposed Changes
HttpContext
and not the original one that is returned with a response. The fix is that the rate limiting headers are set for the originalHttpContext
returned byHttpContextAccessor
.