Skip to content

Commit

Permalink
typo fix line #856 and #920 (#5194)
Browse files Browse the repository at this point in the history
punctuation missing

Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
shreem-123 and jasonsaayman committed Oct 30, 2022
1 parent 6a548bf commit c16fe22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -881,7 +881,7 @@ cancel();
### URLSearchParams
By default, axios serializes JavaScript objects to `JSON`. To send data in the [`application/x-www-form-urlencoded` format](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) instead, you can use the [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) API, which is [supported](http://www.caniuse.com/#feat=urlsearchparams) in the vast majority of browsers, [and Node](https://nodejs.org/api/url.html#url_class_urlsearchparams) starting with v10 (released in 2018).
By default, axios serializes JavaScript objects to `JSON`. To send data in the [`application/x-www-form-urlencoded` format](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) instead, you can use the [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) API, which is [supported](http://www.caniuse.com/#feat=urlsearchparams) in the vast majority of browsers,and [ Node](https://nodejs.org/api/url.html#url_class_urlsearchparams) starting with v10 (released in 2018).
```js
const params = new URLSearchParams({ foo: 'bar' });
Expand Down Expand Up @@ -945,7 +945,7 @@ await axios.postForm('https://postman-echo.com/post', data,
);
```
The server will handle it as
The server will handle it as:
```js
{
Expand Down

0 comments on commit c16fe22

Please sign in to comment.