Aleksei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
modules/caddyhttp/reverseproxy/reverseproxy.go
|
|
@ -384,7 +384,8 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyht |
|
|
|
// DialInfo struct should have valid network address syntax
|
|
|
|
dialInfo, err := upstream.fillDialInfo(r) |
|
|
|
if err != nil { |
|
|
|
return fmt.Errorf("making dial info: %v", err) |
|
|
|
err = fmt.Errorf("making dial info: %v", err) |
|
|
|
return caddyhttp.Error(http.StatusBadGateway, err) |
|
|
|
} |
|
|
|
|
|
|
|
// attach to the request information about how to dial the upstream;
|
|
|
|