switch HTTP P2P protocol to base64url

Base64 can include '/', and with UUIDs and keys both used in routes,
the encoding needs to avoid that. Use base64url everywhere in the HTTP
protocol for consistency.
This commit is contained in:
Joey Hess 2024-07-11 12:31:41 -04:00
parent fc90270ba0
commit 68227154fb
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 24 additions and 24 deletions

View file

@ -12,10 +12,10 @@ But this protocol requires that UTF-8 be used throughout, except
where bodies use `Content-Type: application/octet-stream`.
So, all git-annex keys, uuids, and filenames in this protocol are
base64 encoded.
[base64url](https://datatracker.ietf.org/doc/html/rfc4648#section-5) encoded.
Examples in this document use non-base64-encoded values to show that the
underlying data is.
Examples in this document use non-base64url-encoded values to show the
underlying data.
## authentication