http_aws_sigv4: avoid risk of overflowed constant

- Simplify canon_query() a bit. Avoid unconditionally using length -1
  where length risks being zero at times. Pointed out by Coverity.
- Fix indent errors
- narrow some variable scopes
- fix keywords in tests

Closes #17402
This commit is contained in:
Daniel Stenberg 2025-05-21 08:24:39 +02:00
parent 5b4bd55006
commit 8c8186eadc
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 61 additions and 68 deletions

View file

@ -3,6 +3,7 @@
<keywords>
unittest
canon_string
aws-sigv4
</keywords>
</info>

View file

@ -3,6 +3,7 @@
<keywords>
unittest
canon_query
aws-sigv4
</keywords>
</info>