From 927da63e685c92709d0be877b5e5cb477535074c Mon Sep 17 00:00:00 2001 From: Baggerone Date: Thu, 12 Dec 2019 16:07:57 -0500 Subject: [PATCH] Fix doc comment on attribute (#90) --- cors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cors.go b/cors.go index 2730934..ac3b0bb 100644 --- a/cors.go +++ b/cors.go @@ -41,7 +41,7 @@ type Options struct { // as argument and returns true if allowed or false otherwise. If this option is // set, the content of AllowedOrigins is ignored. AllowOriginFunc func(origin string) bool - // AllowOriginFunc is a custom function to validate the origin. It takes the HTTP Request object and the origin as + // AllowOriginRequestFunc is a custom function to validate the origin. It takes the HTTP Request object and the origin as // argument and returns true if allowed or false otherwise. If this option is set, the content of `AllowedOrigins` // and `AllowOriginFunc` is ignored. AllowOriginRequestFunc func(r *http.Request, origin string) bool