Skip to content

Commit 585321d

Browse files
committed
Fix error in example.
1 parent 125c34c commit 585321d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/oas.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3055,6 +3055,12 @@ components:
30553055
# This demonstrates that the text is required to be provided
30563056
# in the final format, and is not changed by serialization.
30573057
# In practice, it is not necessary to show both value fields.
3058+
# Note that only the comma (%2C) would need to be percent-encoded
3059+
# if percent-encoding were only being done to make the value
3060+
# a valid cookie, as space (%20) and the exclamation point (%21)
3061+
# are allowed in cookies, but not in URLs. See the cookie
3062+
# input parameter examples for an example of encoding only
3063+
# what is needed for the cookie syntax.
30583064
dataValue: |
30593065
lang=en-US; Expires=Wed, 09 Jun 2021 10:18:14 GMT
30603066
foo=bar; Expires=Wed, 09 Jun 2021 10:18:14 GMT
@@ -3097,6 +3103,7 @@ In an HTTP message, the serialized example would look like:
30973103
```http
30983104
Set-Cookie: lang=en-US; Expires=Wed, 09 Jun 2021 10:18:14 GM
30993105
Set-Cookie: foo=bar; Expires=Wed, 09 Jun 2021 10:18:14 GMT
3106+
Set-Cookie: urlSafeData=Hello%2C%20world%21
31003107
```
31013108
31023109
##### Header Object Example

0 commit comments

Comments
 (0)