Skip to content

Commit 8a908c1

Browse files
ericproulxclaude
andauthored
Say in the README what a GET's request body gives params (#3094)
The README listed POST, PUT, PATCH, DELETE and QUERY as the methods whose body becomes params. Rack parses form input whatever the method, so a GET with a form-encoded or multipart body has it in params too, while a JSON or XML body on a GET is ignored. Say so, and point to QUERY for a query sent in the body. Follows #2282. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 64416f8 commit 8a908c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ get :public_timeline do
639639
end
640640
```
641641

642-
Parameters are automatically populated from the request body on `POST`, `PUT`, `PATCH`, `DELETE` and `QUERY` for form input, JSON and XML content-types.
642+
Parameters are automatically populated from the request body on `POST`, `PUT`, `PATCH`, `DELETE` and `QUERY` for form input, JSON and XML content-types. Rack parses form input whatever the method, so a `GET` with a form-encoded or multipart body has it in `params` too, while a JSON or XML body on a `GET` is ignored. To send a query in the request body, use [`QUERY`](#the-query-method).
643643

644644
The request:
645645

0 commit comments

Comments
 (0)