Skip to content

Commit dd61665

Browse files
committed
Review feedback.
1 parent 775fb60 commit dd61665

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
@@ -1902,15 +1902,15 @@ multipart/mixed:
19021902
19031903
###### Example: Ordered Multipart With Required Header
19041904
1905-
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.
1906-
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.
1905+
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.
1906+
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.
19071907

19081908
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.
19091909

19101910
```yaml
19111911
components:
19121912
headers:
1913-
RFC2557ContentId:
1913+
RFC2557NoContentId:
19141914
description: Use Content-Location instead of Content-ID
19151915
schema: false
19161916
RFC2557ContentLocation:
@@ -1936,14 +1936,14 @@ components:
19361936
- contentType: text/html
19371937
headers:
19381938
Content-ID:
1939-
$ref: '#/components/headers/RFC2557ContentId'
1939+
$ref: '#/components/headers/RFC2557NoContentId'
19401940
Content-Location:
19411941
$ref: '#/components/headers/RFC2557ContentLocation'
19421942
itemEncoding:
1943-
contentType: text/html, text/css, text/javascript, image/*
1943+
contentType: text/css,text/javascript,image/*
19441944
headers:
19451945
Content-ID:
1946-
$ref: '#/components/headers/RFC2557ContentId'
1946+
$ref: '#/components/headers/RFC2557NoContentId'
19471947
Content-Location:
19481948
$ref: '#/components/headers/RFC2557ContentLocation'
19491949
```

0 commit comments

Comments
 (0)