mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-06 00:03:36 -04:00
typo in README
This commit is contained in:
parent
b9e54dbe0f
commit
737981f9aa
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user