Merge pull request 'trim any leading whitespace in the input' (#258) from send-input-fix into master
Some checks are pending
release / docker (push) Waiting to run

Reviewed-on: #258
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
This commit is contained in:
lash 2025-01-07 10:33:20 +01:00
commit 656052dc74

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 {