mirror of
https://github.com/adnanh/webhook.git
synced 2025-06-01 02:02:28 +00:00
Use strings.ToLower on source name parameters
This commit is contained in:
parent
346c761ef6
commit
6f5962f8f2
2 changed files with 2 additions and 2 deletions
|
@ -454,7 +454,7 @@ func (ha *Argument) Get(r *Request) (string, error) {
|
|||
return "", errors.New("request is nil")
|
||||
}
|
||||
|
||||
switch ha.Name {
|
||||
switch strings.ToLower(ha.Name) {
|
||||
case "remote-addr":
|
||||
return r.RawRequest.RemoteAddr, nil
|
||||
case "method":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue