Skip to content

Commit 7e8f352

Browse files
committed
Review feedback.
1 parent 67e81b9 commit 7e8f352

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/oas.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,15 +1927,15 @@ multipart/mixed:
19271927
19281928
###### Example: Ordered Multipart With Required Header
19291929
1930-
As described in [[?RFC2557]], a set of resources making up a web pages can be sent in a `multipart/related` payload, preserving links among themselves by defining a `Content-Location` header for each page.
1931-
The first part is used as the root resource (unless using `Content-ID`, which RFC2557 advises against), so we use `prefixItems` and `prefixEncoding` to define that it must be an HTML resource, and then allow any of several different types of resources in any order to follow.
1930+
As described in [[?RFC2557]], a set of resources making up a web page can be sent in a `multipart/related` payload, preserving links from the `text/html` document to subsidiary resources such as scripts, style sheets, and images by defining a `Content-Location` header for each page.
1931+
The first part is used as the root resource (unless using `Content-ID`, which RFC2557 advises against and is forbidden in this example), so we use `prefixItems` and `prefixEncoding` to define that it must be an HTML resource, and then allow any of several different types of resources in any order to follow.
19321932

19331933
The `Content-Location` header is defined using `content: {text/plain: {...}}` to avoid percent-encoding its URI value; see [Appendix D](appendix-d-serializing-headers-and-cookies) for further details.
19341934

19351935
```yaml
19361936
components:
19371937
headers:
1938-
RFC2557ContentId:
1938+
RFC2557NoContentId:
19391939
description: Use Content-Location instead of Content-ID
19401940
schema: false
19411941
RFC2557ContentLocation:
@@ -1961,14 +1961,14 @@ components:
19611961
- contentType: text/html
19621962
headers:
19631963
Content-ID:
1964-
$ref: '#/components/headers/RFC2557ContentId'
1964+
$ref: '#/components/headers/RFC2557NoContentId'
19651965
Content-Location:
19661966
$ref: '#/components/headers/RFC2557ContentLocation'
19671967
itemEncoding:
1968-
contentType: text/html, text/css, text/javascript, image/*
1968+
contentType: text/css,text/javascript,image/*
19691969
headers:
19701970
Content-ID:
1971-
$ref: '#/components/headers/RFC2557ContentId'
1971+
$ref: '#/components/headers/RFC2557NoContentId'
19721972
Content-Location:
19731973
$ref: '#/components/headers/RFC2557ContentLocation'
19741974
```

0 commit comments

Comments
 (0)