From 737981f9aaa84c815358406aa05c978f097ecb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Mon, 28 Mar 2011 15:05:02 +0200 Subject: [PATCH] typo in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e237153..c3f40d61 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ This request middleware setup affects POST/PUT requests in the following way: 1. `Request::Multipart` checks for files in the payload, otherwise leaves everything untouched; 2. `Request::UrlEncoded` encodes as "application/x-www-form-urlencoded" if not already encoded or of another type -2. `Request::JSON` encodes as "application/x-www-form-urlencoded" if not already encoded or of another type +2. `Request::JSON` encodes as "application/json" if not already encoded or of another type Because "UrlEncoded" is higher on the stack than JSON encoder, it will get to process the request first. Swapping them means giving the other priority. Specifying the "Content-Type" for the request is explicitly stating which middleware should process it.