Skip to content

Fix inconsistency while using RewriteWithConfig middleware #1176

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

Merged
merged 1 commit into from
Aug 15, 2018

Conversation

mweglarz
Copy link
Contributor

Fix issue #1143

For similar rules regexes it is random which one will be matched, because
rules are stored in map which don't preserve order. Adding end of line symbol to regexe pattern resolve this issue because now only one regular expression matches.

@codecov
Copy link

codecov bot commented Aug 15, 2018

Codecov Report

Merging #1176 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1176      +/-   ##
==========================================
+ Coverage   81.33%   81.35%   +0.01%     
==========================================
  Files          25       25              
  Lines        1918     1920       +2     
==========================================
+ Hits         1560     1562       +2     
  Misses        250      250              
  Partials      108      108
Impacted Files Coverage Δ
middleware/rewrite.go 68% <100%> (+2.78%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2017e5e...2df12d8. Read the comment docs.

@vishr vishr merged commit 74f9806 into labstack:master Aug 15, 2018
@vishr vishr mentioned this pull request Aug 15, 2018
3 tasks
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.

2 participants