Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow SP in Byte Sequences #1322

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion draft-ietf-httpbis-header-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ The ABNF for a Byte Sequence is:

~~~ abnf
sf-binary = ":" *(base64) ":"
base64 = ALPHA / DIGIT / "+" / "/" / "="
base64 = ALPHA / DIGIT / "+" / "/" / "=" / SP
~~~

A Byte Sequence is delimited with colons and encoded using base64 ({{!RFC4648}}, Section 4). For example:
Expand Down Expand Up @@ -949,6 +949,7 @@ Given an ASCII string as input_string, return a Byte Sequence. input_string is m
3. If there is not a ":" character before the end of input_string, fail parsing.
4. Let b64_content be the result of consuming content of input_string up to but not including the first instance of the character ":".
5. Consume the ":" character at the beginning of input_string.
6. Remove all SP from input_string.
6. If b64_content contains a character not included in ALPHA, DIGIT, "+", "/" and "=", fail parsing.
7. Let binary_content be the result of Base 64 Decoding {{!RFC4648}} b64_content, synthesizing padding if necessary (note the requirements about recipient behavior below).
8. Return binary_content.
Expand Down