fix docu for "disableRedirect"

This commit is contained in:
Sefa Ilkimen
2018-02-28 04:08:32 +01:00
parent 2d15b86cb5
commit 4a437f9435
2 changed files with 14 additions and 10 deletions
+11 -7
View File
@@ -93,13 +93,6 @@ cordova.plugin.http.setHeader('www.example.com', 'Header', 'Value');
cordova.plugin.http.setHeader('www.example.com:8080', 'Header', 'Value');
```
### disableRedirect
If set to `true`, it won't follow redirects automatically. This is a global setting.
```js
cordova.plugin.http.disableRedirect(true);
```
### setDataSerializer<a name="setDataSerializer"></a>
Set the data serializer which will be used for all future PATCH, POST and PUT requests. Takes a string representing the name of the serializer.
@@ -173,6 +166,17 @@ cordova.plugin.http.acceptAllCerts(true, function() {
});
```
### disableRedirect
If set to `true`, it won't follow redirects automatically. This defaults to false.
```js
cordova.plugin.http.disableRedirect(true, function() {
console.log('success!');
}, function() {
console.log('error :(');
});
```
### validateDomainName
This function was removed in v1.6.2. Domain name validation is disabled automatically when you enable "acceptAllCerts".