Skip to content

Commit

Permalink
docs: fix typo of httpclient & unittest (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezhang authored and atian25 committed Mar 17, 2017
1 parent 871aa82 commit 3849c1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/zh-cn/core/httpclient.md
Expand Up @@ -280,7 +280,7 @@ exports.httpclient = {
需要发送的请求数据,根据 `method` 自动选择正确的数据处理方式。

- GET,HEAD:通过 `querystring.stringify(data)` 处理后拼接到 url 的 query 参数上。
- POST,POST 和 DELETE 等:需要根据 `contentType` 做进一步判断处理。
- POST,PUT 和 DELETE 等:需要根据 `contentType` 做进一步判断处理。
- `contentType = json`:通过 `JSON.stringify(data)` 处理,并设置为 body 发送。
- 其他:通过 `querystring.stringify(data)` 处理,并设置为 body 发送。

Expand Down
2 changes: 1 addition & 1 deletion docs/source/zh-cn/core/unittest.md
Expand Up @@ -349,7 +349,7 @@ describe('test/controller/home.test.js', () => {
});
```

SuperTest 可以轻松发起 GET、POST、PUT 等 HTTP 请求,并且它有非常丰富的请求数据构造接口,
通过 SuperTest 可以轻松发起 GET、POST、PUT 等 HTTP 请求,并且它有非常丰富的请求数据构造接口,
例如以 POST 方式发送一个 JSON 请求:

```js
Expand Down

0 comments on commit 3849c1c

Please sign in to comment.