From acc67eb3b2f3239881812fafbce07ddd934f95db Mon Sep 17 00:00:00 2001 From: Toby Allen Date: Mon, 10 Jul 2017 21:47:48 +0100 Subject: [PATCH] Rename directive requestid to request_id (#1757) * rename requestid request_id * rename folder * folder name match package name requestid --- caddyhttp/httpserver/plugin.go | 2 +- caddyhttp/requestid/setup.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, })