couchdb-objects
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -110,8 +110,10 @@ /* | ||
for (var header in options.headers) { | ||
if (options.headers.hasOwnProperty(header)) { | ||
result.headers[normalizeHeaderCase(header)] = options.headers[header]; | ||
if (options && options.headers) { | ||
for (var header in options.headers) { | ||
if (options.headers.hasOwnProperty(header)) { | ||
result.headers[normalizeHeaderCase(header)] = options.headers[header]; | ||
} | ||
} | ||
delete options.headers; | ||
} | ||
delete options.headers; | ||
@@ -118,0 +120,0 @@ extend(true, result, options); |
{ | ||
"name": "couchdb-objects", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "description": "Aids in the construction of JSON objects as used by CouchDB.", |
7564
182