Comparing version 0.1.0-rc3 to 0.1.0-rc4
@@ -300,13 +300,14 @@ "use strict"; | ||
key = key.toLowerCase(); | ||
value = Type.isString(value) ? value : value.toString(); | ||
if (this.hasHeader(key) && !Type.isArray(this.headers[key])) { | ||
item = this.getHeader(key); | ||
this.headers[key] = []; | ||
this.headers[key].push(item); | ||
this.headers[key].push(value); | ||
} else if (this.hasHeader(key) && Type.isArray(this.headers[key])) { | ||
this.headers[key].push(value); | ||
} else { | ||
this.headers[key] = value; | ||
value = Type.isString(value) ? value : Type.isInitialized(value) ? value.toString() : null; | ||
if (Type.isString(value)) { | ||
if (this.hasHeader(key) && !Type.isArray(this.headers[key])) { | ||
item = this.getHeader(key); | ||
this.headers[key] = []; | ||
this.headers[key].push(item); | ||
this.headers[key].push(value); | ||
} else if (this.hasHeader(key) && Type.isArray(this.headers[key])) { | ||
this.headers[key].push(value); | ||
} else { | ||
this.headers[key] = value; | ||
} | ||
} | ||
@@ -313,0 +314,0 @@ } else { |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.0-rc3", | ||
"version": "0.1.0-rc4", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "mongoose": "3.8.x", |
155345
4997