diff options
author | Zac Bergquist <[email protected]> | 2015-05-24 21:00:54 -0400 |
---|---|---|
committer | Zac Bergquist <[email protected]> | 2015-05-24 21:00:54 -0400 |
commit | d0a51048d74628cea355e158536972da1b36eb72 (patch) | |
tree | 933114f58d81ed71fcbf08412bc658eb7015b005 | |
parent | 506f1314289e408a72a3aed274719b0b1e308cbf (diff) | |
download | caddy-d0a51048d74628cea355e158536972da1b36eb72.tar.gz caddy-d0a51048d74628cea355e158536972da1b36eb72.zip |
Fix lint warnings in middleware/rewrite
-rw-r--r-- | middleware/rewrite/rewrite.go | 5 | ||||
-rw-r--r-- | middleware/rewrite/rewrite_test.go | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/middleware/rewrite/rewrite.go b/middleware/rewrite/rewrite.go index aefb23295..9e8d62bb4 100644 --- a/middleware/rewrite/rewrite.go +++ b/middleware/rewrite/rewrite.go @@ -6,12 +6,13 @@ import ( "net/http" "fmt" - "github.com/mholt/caddy/middleware" "net/url" "path" "path/filepath" "regexp" "strings" + + "github.com/mholt/caddy/middleware" ) // Rewrite is middleware to rewrite request locations internally before being handled. @@ -96,7 +97,7 @@ func NewRegexpRule(base, pattern, to string, ext []string) (*RegexpRule, error) } // regexpVars are variables that can be used for To (rewrite destination path). -var regexpVars []string = []string{ +var regexpVars = []string{ "{path}", "{query}", "{file}", diff --git a/middleware/rewrite/rewrite_test.go b/middleware/rewrite/rewrite_test.go index dd9c77df1..d9056b431 100644 --- a/middleware/rewrite/rewrite_test.go +++ b/middleware/rewrite/rewrite_test.go @@ -6,8 +6,9 @@ import ( "net/http/httptest" "testing" - "github.com/mholt/caddy/middleware" "strings" + + "github.com/mholt/caddy/middleware" ) func TestRewrite(t *testing.T) { |