trim any leading whitespace in the input

This commit is contained in:
Alfred Kamanda 2025-01-07 12:15:15 +03:00
parent 80b96e9bf6
commit 6c5873da6f
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -81,7 +81,8 @@ func (arp *ATRequestParser) GetInput(rq any) ([]byte, error) {
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 {