aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/autohttps.go
diff options
context:
space:
mode:
authorMatt Holt <[email protected]>2021-01-28 12:54:55 -0700
committerGitHub <[email protected]>2021-01-28 12:54:55 -0700
commite2c5c28597e6a8c5e7ef48fde88f0b7d740d9586 (patch)
tree5182a73cc3aadd452b1eadce4370a05985c75c91 /modules/caddyhttp/autohttps.go
parentab80ff4fd2911afc394b9dbceeb9f71c7a0b7ec1 (diff)
downloadcaddy-e2c5c28597e6a8c5e7ef48fde88f0b7d740d9586.tar.gz
caddy-e2c5c28597e6a8c5e7ef48fde88f0b7d740d9586.zip
caddyhttp: Implement handler abort; new 'abort' directive (close #3871) (#3983)
* caddyhttp: Implement handler abort; new 'abort' directive (close #3871) * Move abort directive ordering; clean up redirects Seems logical for the end-all of handlers to go at the... end. The Connection header no longer needs to be set there, since Close is true, and the static_response handler now does that.
Diffstat (limited to 'modules/caddyhttp/autohttps.go')
-rw-r--r--modules/caddyhttp/autohttps.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/caddyhttp/autohttps.go b/modules/caddyhttp/autohttps.go
index 9d6612fa4..c1d4c087b 100644
--- a/modules/caddyhttp/autohttps.go
+++ b/modules/caddyhttp/autohttps.go
@@ -409,8 +409,7 @@ func (app *App) makeRedirRoute(redirToPort uint, matcherSet MatcherSet) Route {
StaticResponse{
StatusCode: WeakString(strconv.Itoa(http.StatusPermanentRedirect)),
Headers: http.Header{
- "Location": []string{redirTo},
- "Connection": []string{"close"},
+ "Location": []string{redirTo},
},
Close: true,
},