diff --git a/caddyhttp/httpserver/plugin.go b/caddyhttp/httpserver/plugin.go index a02de9bc..92473dd3 100644 --- a/caddyhttp/httpserver/plugin.go +++ b/caddyhttp/httpserver/plugin.go @@ -443,7 +443,7 @@ var directives = []string{ // services/utilities, or other directives that don't necessarily inject handlers "startup", "shutdown", - "requestid", + "request_id", "realip", // github.com/captncraig/caddy-realip "git", // github.com/abiosoft/caddy-git diff --git a/caddyhttp/requestid/setup.go b/caddyhttp/requestid/setup.go index 20abf345..8c06af9e 100644 --- a/caddyhttp/requestid/setup.go +++ b/caddyhttp/requestid/setup.go @@ -6,7 +6,7 @@ import ( ) func init() { - caddy.RegisterPlugin("requestid", caddy.Plugin{ + caddy.RegisterPlugin("request_id", caddy.Plugin{ ServerType: "http", Action: setup, })