Skip to content

Fix inconsistency while using RewriteWithConfig middleware - #1176

Merged
vishr merged 1 commit into
labstack:masterfrom
mweglarz:master
Aug 15, 2018
Merged

Fix inconsistency while using RewriteWithConfig middleware#1176
vishr merged 1 commit into
labstack:masterfrom
mweglarz:master

Conversation

@mweglarz

Copy link
Copy Markdown
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

codecov Bot commented Aug 15, 2018

Copy link
Copy Markdown

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