File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package main
22
33import (
4- "github.com/mholt /caddy/caddy/caddymain"
4+ "github.com/caddyserver /caddy/caddy/caddymain"
55
66 _ "github.com/caddyserver/forwardproxy"
77)
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
1313 "testing"
1414 "time"
1515
16- "github.com/mholt /caddy"
16+ "github.com/caddyserver /caddy"
1717)
1818
1919var credentialsEmpty = ""
@@ -95,7 +95,7 @@ func (c *caddyTestServer) marshal() []byte {
9595 mainBlock = append (mainBlock , "}" )
9696 if len (c .HTTPRedirectPort ) > 0 {
9797 // TODO: this is not good enough, since `func redirPlaintextHost(cfg *SiteConfig) *SiteConfig`
98- // https://github.com/mholt /caddy/blob/master/caddyhttp/httpserver/https.go#L142 can change in future
98+ // https://github.com/caddyserver /caddy/blob/master/caddyhttp/httpserver/https.go#L142 can change in future
9999 // and we won't know.
100100 redirectBlock := []string {"http://*:" + c .HTTPRedirectPort + " {" ,
101101 "redir https://" + c .addr + "{uri}" ,
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ import (
3434 "sync"
3535 "time"
3636
37+ "github.com/caddyserver/caddy/caddyhttp/httpserver"
3738 "github.com/caddyserver/forwardproxy/httpclient"
38- "github.com/mholt/caddy/caddyhttp/httpserver"
3939)
4040
4141type ForwardProxy struct {
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ import (
2828 "testing"
2929 "time"
3030
31+ _ "github.com/caddyserver/caddy/caddyhttp/header"
32+ _ "github.com/caddyserver/caddy/caddyhttp/httpserver"
33+ _ "github.com/caddyserver/caddy/caddyhttp/redirect"
34+ _ "github.com/caddyserver/caddy/caddyhttp/root"
3135 "github.com/caddyserver/forwardproxy/httpclient"
32- _ "github.com/mholt/caddy/caddyhttp/header"
33- _ "github.com/mholt/caddy/caddyhttp/httpserver"
34- _ "github.com/mholt/caddy/caddyhttp/redirect"
35- _ "github.com/mholt/caddy/caddyhttp/root"
3636 "golang.org/x/net/http2"
3737)
3838
Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ import (
3131 "sync"
3232 "time"
3333
34+ "github.com/caddyserver/caddy"
35+ "github.com/caddyserver/caddy/caddyhttp/httpserver"
3436 "github.com/caddyserver/forwardproxy/httpclient"
35- "github.com/mholt/caddy"
36- "github.com/mholt/caddy/caddyhttp/httpserver"
3737 "golang.org/x/net/proxy"
3838)
3939
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ package forwardproxy
1717import (
1818 "testing"
1919
20- "github.com/mholt /caddy"
20+ "github.com/caddyserver /caddy"
2121)
2222
2323func TestSetup (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments