summaryrefslogtreecommitdiff
path: root/caddyconfig/httpcaddyfile/directives.go
diff options
context:
space:
mode:
authorMatt Holt <mholt@users.noreply.github.com>2021-01-28 12:54:55 -0700
committerGitHub <noreply@github.com>2021-01-28 12:54:55 -0700
commite2c5c28597e6a8c5e7ef48fde88f0b7d740d9586 (patch)
tree5182a73cc3aadd452b1eadce4370a05985c75c91 /caddyconfig/httpcaddyfile/directives.go
parentab80ff4fd2911afc394b9dbceeb9f71c7a0b7ec1 (diff)
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 'caddyconfig/httpcaddyfile/directives.go')
-rw-r--r--caddyconfig/httpcaddyfile/directives.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/caddyconfig/httpcaddyfile/directives.go b/caddyconfig/httpcaddyfile/directives.go
index b79b811..7f77f49 100644
--- a/caddyconfig/httpcaddyfile/directives.go
+++ b/caddyconfig/httpcaddyfile/directives.go
@@ -69,6 +69,7 @@ var directiveOrder = []string{
"php_fastcgi",
"file_server",
"acme_server",
+ "abort",
}
// directiveIsOrdered returns true if dir is