caddy/caddyhttp/rewrite
Simon Lightfoot d48e51cb78 Changed IfCond to store the condition function and the compiled regular expression.
Updated ifCondition test to deep test all fields.
Changed NewComplexRule to not return a pointer.
Corrected panic detection in formatting.
Fixed failing test cases.
Fixed review bug for test.
Fixes bug caused by Replacer running on the regular expressions in IfMatcher. We also now compile regular expressions up front to detect errors.
Fixes rewrite bugs that come from formatting a rule as a string and failing with nil dereference caused by embedding Regexp pointer in a Rule. Re: Issue #1794
2017-08-03 11:59:30 +01:00
..
testdata Migrating more middleware packages 2016-06-05 21:51:56 -06:00
rewrite_test.go httpserver/all: Clean up and standardize request URL handling (#1633) 2017-05-01 23:11:10 -06:00
rewrite.go Changed IfCond to store the condition function and the compiled regular expression. 2017-08-03 11:59:30 +01:00
setup_test.go Changed IfCond to store the condition function and the compiled regular expression. 2017-08-03 11:59:30 +01:00
setup.go Revert "rewrite: Raise error if rewrite path does not begin with / #1610 (#1629)" 2017-05-02 09:30:18 -06:00
to_test.go httpserver/all: Clean up and standardize request URL handling (#1633) 2017-05-01 23:11:10 -06:00
to.go httpserver/all: Clean up and standardize request URL handling (#1633) 2017-05-01 23:11:10 -06:00