Skip to content

Conversation

@ryanfowler
Copy link
Owner

No description provided.

@ryanfowler ryanfowler requested a review from Copilot January 9, 2026 04:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the AWS SigV4 signature calculation to correctly handle multi-byte UTF-8 characters in URI paths. The issue was that the code was encoding the entire UTF-8 byte sequence as a single unit, when each byte should be percent-encoded individually.

Key changes:

  • Modified the loop in escapeURIPath to iterate over each byte of the encoded UTF-8 rune individually
  • Simplified encodeHexUpper to accept a single byte instead of a byte slice, removing the internal loop

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ryanfowler ryanfowler enabled auto-merge January 9, 2026 04:01
@ryanfowler ryanfowler merged commit 7688d7e into main Jan 9, 2026
10 checks passed
@ryanfowler ryanfowler deleted the aws-sigv4-utf8 branch January 9, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants