- fixed an error if the response has no "headers" field

- updated change log
- incremented version for release
This commit is contained in:
Jochen Becker
2017-03-03 11:11:04 +01:00
parent 8092e8b025
commit c153378b4b
4 changed files with 7 additions and 3 deletions
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## v1.5.4
- fixed an error if the response has no "headers" field
## v1.5.3
- handles cookies correctly on non-success response from server
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-advanced-http",
"version": "1.5.3",
"version": "1.5.4",
"description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning",
"scripts": {
"build": "cp node_modules/umd-tough-cookie/lib/umd-tough-cookie.js www/umd-tough-cookie.js",
+1 -1
View File
@@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-advanced-http"
version="1.5.3">
version="1.5.4">
<name>Advanced HTTP plugin</name>
+1 -1
View File
@@ -73,7 +73,7 @@ function checkSerializer(serializer) {
}
function resolveCookieString(headers) {
var keys = Object.keys(headers);
var keys = Object.keys(headers || {});
for (var i = 0; i < keys.length; ++i) {
if (keys[i].match(/^set-cookie$/i)) {