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

Commit 02af36d

Browse files
committed
fixup! fix($http): correct behavior
1 parent 4d82206 commit 02af36d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ng/http.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,8 +845,11 @@ function $HttpProvider() {
845845
* See {@link $http#caching $http Caching} for more information.
846846
* - **timeout** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise}
847847
* that should abort the request when resolved.
848-
* A numerical timeout or `$timeout` will set `xhrStatus` "timeout", and a resolved promise
849-
* will set it to "abort", following standard XMLHttpRequest behavior.
848+
*
849+
* A numerical timeout or a promise returned from {@link ng.$timeout $timeout}, will set
850+
* the `xhrStatus` in the {@link $http#$http-returns response} to "timeout", and any other
851+
* resolved promise will set it to "abort", following standard XMLHttpRequest behavior.
852+
*
850853
* - **withCredentials** - `{boolean}` - whether to set the `withCredentials` flag on the
851854
* XHR object. See [requests with credentials](https://developer.mozilla.org/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials)
852855
* for more information.

0 commit comments

Comments
 (0)