Permalink
Browse files

change: conditions of NO_CONTENT

  • Loading branch information...
1 parent b2e9a3a commit 5c58c0133fd556ded3ebfabcdcf036c1b9b30886 @mah0x211 committed May 26, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/auditor.js
  2. +1 −1 package.json
View
@@ -294,7 +294,7 @@ auditor.prototype.check = function( label, field, val )
}
// check defined
// 204 NO_CONTENT
- else if( tmp === undefined || tmp === null ){
+ else if( tmp === undefined || tmp === null || ( isString( tmp ) && tmp.length === 0 ) ){
result.errno = STATUS.NO_CONTENT;
result.errstr = 'field val undefined';
}
View
@@ -6,7 +6,7 @@
],
"description": "",
"homepage": "http://github.com/mah0x211/node-auditor",
- "version" : "0.1.2",
+ "version" : "0.1.3",
"licenses" : [
{
"type": "MIT"

0 comments on commit 5c58c01

Please sign in to comment.