From 00bfa262cb843c8a873d7b897fe5da8f5ab45be5 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Sat, 26 Oct 2024 18:46:42 +0900 Subject: [PATCH] docs: update reverseproxy.go Defination -> Definition --- src/reverseproxy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/reverseproxy.go b/src/reverseproxy.go index 18928f6..98217a3 100644 --- a/src/reverseproxy.go +++ b/src/reverseproxy.go @@ -1171,7 +1171,7 @@ func HandleCustomHeaderAdd(w http.ResponseWriter, r *http.Request) { return } - //Create a Custom Header Defination type + //Create a Custom Header Definition type var rewriteDirection dynamicproxy.HeaderDirection if direction == "toOrigin" { rewriteDirection = dynamicproxy.HeaderDirection_ZoraxyToUpstream @@ -1187,7 +1187,7 @@ func HandleCustomHeaderAdd(w http.ResponseWriter, r *http.Request) { if rewriteType == "remove" { isRemove = true } - headerRewriteDefination := dynamicproxy.UserDefinedHeader{ + headerRewriteDefinition := dynamicproxy.UserDefinedHeader{ Key: name, Value: value, Direction: rewriteDirection, @@ -1195,7 +1195,7 @@ func HandleCustomHeaderAdd(w http.ResponseWriter, r *http.Request) { } //Create a new custom header object - err = targetProxyEndpoint.AddUserDefinedHeader(&headerRewriteDefination) + err = targetProxyEndpoint.AddUserDefinedHeader(&headerRewriteDefinition) if err != nil { utils.SendErrorResponse(w, "unable to add header rewrite rule: "+err.Error()) return