Merge pull request 'trim any leading whitespace in the input' (#2) from trim-leading-space into master
Reviewed-on: #2
This commit is contained in:
commit
5a539172c6
@ -83,7 +83,8 @@ func (arp *ATRequestParser) GetInput(rq any) ([]byte, error) {
|
|||||||
return nil, fmt.Errorf("no input found")
|
return nil, fmt.Errorf("no input found")
|
||||||
}
|
}
|
||||||
|
|
||||||
return []byte(parts[len(parts)-1]), nil
|
trimmedInput := strings.TrimSpace(parts[len(parts)-1])
|
||||||
|
return []byte(trimmedInput), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseQueryParams(query string) map[string]string {
|
func parseQueryParams(query string) map[string]string {
|
||||||
|
Loading…
Reference in New Issue
Block a user