Skip to content

Commit 8708996

Browse files
committed
Updates the prose for OptionalTokenResponse
Optional value is defined in the draft. OptionalTokenResponse should use it.
1 parent a571627 commit 8708996

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

draft-ietf-privacypass-batched-tokens.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ structure of protocol messages. In addition to the base syntax, it uses two
123123
additional features: the ability for fields to be optional and the ability for
124124
vectors to have variable-size length headers.
125125

126-
## Optional Value
126+
## Optional Value {#optional-value}
127127

128128
An optional value is encoded with a presence-signaling octet, followed by the
129129
value itself if present. When decoding, a presence octet with a value other
@@ -508,10 +508,10 @@ struct {
508508
} BatchTokenResponse
509509
~~~
510510

511-
BatchTokenResponse.token_responses is a vector of OptionalTokenResponses, length
512-
prefixed with two bytes. OptionalTokenResponse.token_response is a
513-
length-prefix-encoded TokenResponse, where a length of 0 indicates that the
514-
Issuer failed or refused to issue the associated TokenRequest.
511+
BatchTokenResponse.token_responses is a variable-size vector of
512+
OptionalTokenResponses. OptionalTokenResponse.token_response is an
513+
{{optional-value}} TokenResponse, where an absence of TokenResponse indicates
514+
that the Issuer failed or refused to issue the associated TokenRequest.
515515

516516
The Issuer generates an HTTP response with status code 200 whose content
517517
consists of TokenResponse, with the content type set as

0 commit comments

Comments
 (0)