Skip to content

Commit 1604936

Browse files
daipomkenhys
andcommitted
Improve expressions
Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com> Co-authored-by: Kentaro Hayashi <hayashi@clear-code.com>
1 parent 72f96a2 commit 1604936

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

input/http.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ msgpack=`echo -e "msgpack=\x81\xa3foo\xa3bar"`
5151
curl -X POST -d "$msgpack" http://localhost:9880/app.log
5252
```
5353

54-
Some `Content-Type` other than `application/x-www-form-urlencoded` support specific formats.
55-
In that case, the format type specification as `json=` in the data is not necessary.
54+
Some Media Types other than `application/x-www-form-urlencoded` support specific formats.
55+
If those Media Types are specified with `Content-Type: `, the prefix such as `json=` is not necessary for posting data.
5656

5757
Example: Post JSON data with `Content-Type: application/json`:
5858

@@ -267,12 +267,12 @@ If you use the default `<parse>` setting, the data format depends on the `Conten
267267

268268
By default `curl` uses `-H "Content-Type: application/x-www-form-urlencoded"`, which allows the use of the prefix `json=`, `ndjson=`, and `msgpack=` as seen on the previous examples.
269269

270-
On the other hand, some `Content-Type` other than `application/x-www-form-urlencoded` support specific formats.
271-
In that case, the prefix such as `json=` in the data is not necessary.
270+
On the other hand, some Media Types other than `application/x-www-form-urlencoded` support specific formats.
271+
If those Media Types are specified with `Content-Type: `, the prefix such as `json=` is not necessary for posting data.
272272

273-
Here is the list of supported `Content-Type`:
273+
Here is the list of supported Media Types:
274274

275-
| `Content-Type` | data format | version |
275+
| Media Types | data format | version |
276276
| :--- | :--- | :--- |
277277
| `application/json` | JSON | - |
278278
| `application/csp-report` | JSON | 1.17.0 |

0 commit comments

Comments
 (0)