Change all import paths: mholt/caddy -> caddyserver/caddy

Includes updating go.mod to use new module path
This commit is contained in:
Matthew Holt
2019-07-02 12:49:20 -06:00
parent 0b2e054839
commit f5720fecd6
147 changed files with 292 additions and 292 deletions
+3 -3
View File
@@ -43,7 +43,7 @@ import (
"github.com/lucas-clemente/quic-go"
"github.com/lucas-clemente/quic-go/h2quic"
"github.com/mholt/caddy/caddyhttp/httpserver"
"github.com/caddyserver/caddy/caddyhttp/httpserver"
)
var (
@@ -515,7 +515,7 @@ func (rp *ReverseProxy) copyResponse(dst io.Writer, src io.Reader) {
}
// skip these headers if they already exist.
// see https://github.com/mholt/caddy/pull/1112#discussion_r80092582
// see https://github.com/caddyserver/caddy/pull/1112#discussion_r80092582
var skipHeaders = map[string]struct{}{
"Content-Type": {},
"Content-Disposition": {},
@@ -529,7 +529,7 @@ func copyHeader(dst, src http.Header) {
for k, vv := range src {
if _, ok := dst[k]; ok {
// skip some predefined headers
// see https://github.com/mholt/caddy/issues/1086
// see https://github.com/caddyserver/caddy/issues/1086
if _, shouldSkip := skipHeaders[k]; shouldSkip {
continue
}