Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9e23624

Browse files
committed
Fixed documentation of ngResource.hasBody configuration.
1 parent c6f2687 commit 9e23624

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngResource/resource.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ function shallowClearAndCopy(src, dst) {
193193
* - **`interceptor`** - `{Object=}` - The interceptor object has two optional methods -
194194
* `response` and `responseError`. Both `response` and `responseError` interceptors get called
195195
* with `http response` object. See {@link ng.$http $http interceptors}.
196-
* - **`hasBody`** - `{boolean}` - allows to specify if a request body is to be used (not
197-
* required for POST,PUT,PATCH and can't disable body inclusion on this methods).
196+
* - **`hasBody`** - `{boolean}` - allows to specify if a request body should be included or not.
197+
* If not specified POST,PUT and PATCH will have a request body.
198198
*
199199
* @param {Object} options Hash with custom settings that should extend the
200200
* default `$resourceProvider` behavior. The supported options are:

0 commit comments

Comments
 (0)