From c2ffc923f4513657ef13d50f2d84d67076ea895f Mon Sep 17 00:00:00 2001 From: Joannis Orlandos Date: Sun, 15 Sep 2024 13:39:15 +0300 Subject: [PATCH] Update multipart-form/README.md Co-authored-by: Adam Fowler --- multipart-form/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multipart-form/README.md b/multipart-form/README.md index cfa7d658..964414c7 100644 --- a/multipart-form/README.md +++ b/multipart-form/README.md @@ -4,4 +4,4 @@ Application demonstrating working with HTML forms using multipart form data. Set This example uses the [MultipartKit](https://github.com/vapor/multipart-kit) package for decoding the multipart form data sent by the web browser. The HTML form is generated using the [Mustache](https://github.com/hummingbird-project/swift-mustache) library. A new type `HTML` is added that conforms to `ResponseGenerator`. This generates a response with the `HTML` text contents and a `content-type` header set to `text/html`. -It also adds a new `RequestDecoder` called `MultipartRequestDecoder` that checks the header value `content-type` and if its media type is `.multipartForm` then decodes request using `FormDataDecoder` from the MultipartKit package. Other data will result in the app returning "unsupported media type". +It also adds a new `RequestDecoder` called `MultipartRequestDecoder` that checks the header value `content-type` and if its media type is `.multipartForm` then decodes request using `FormDataDecoder` from the MultipartKit package. Other content types will result in the app returning "unsupported media type".