Skip to content

Commit f61e9b2

Browse files
adjust as per review feedback
1 parent 7833bfe commit f61e9b2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/oas.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,6 +1731,9 @@ Therefore the `array` row in this table applies only to array values inside of a
17311731

17321732
When deserializing a multipart message, if a `Content-Type` header is present in the specific part, its value shall be used instead of these values. Behavior is undefined when both this header and `contentType` are defined but with different values.
17331733

1734+
When deserializing a multipart message, behavior is undefined when the values of `Content-Type` header and the `contentType` field differ. If the `contentType` field is absent but `Content-Type` is present, it is RECOMMENDED to use the value of `Content-Type`. However, this behavior is still technically undefined due to the possibility that the `schema` is not structured for the received `Content-Type`.
1735+
1736+
17341737
| `type` | `contentEncoding` | Default `contentType` |
17351738
| ---- | ---- | ---- |
17361739
| [_absent_](#working-with-binary-data) | _n/a_ | `application/octet-stream` |
@@ -1866,8 +1869,6 @@ Note that there are significant restrictions on what headers can be used with `m
18661869

18671870
##### Handling Multiple `contentType` Values
18681871

1869-
When multiple values are provided for `contentType`, parsing remains straightforward as the part's actual `Content-Type` is included in the document; it SHOULD match one of the media types in `contentType`, if it is present.
1870-
18711872
For encoding and serialization, implementations MUST provide a mechanism for applications to indicate which media type is intended.
18721873
Implementations MAY choose to offer media type sniffing ([[SNIFF]]) as an alternative, but this MUST NOT be the default behavior due to the security risks inherent in the process.
18731874

0 commit comments

Comments
 (0)