Skip to content

Commit

Permalink
Update data.headers.js
Browse files Browse the repository at this point in the history
Removed quotes from 'undefined' in ll. 17/37 to prevent error for non-existing config file.
  • Loading branch information
Peter Janotta committed Feb 12, 2014
1 parent 50bc7ef commit 5451176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/data.headers.js
Expand Up @@ -13,7 +13,7 @@ exports.duplicate_singular = function(next, connection) {
var config = this.config.get('data.headers.ini'); var config = this.config.get('data.headers.ini');


// RFC 5322 Section 3.6, Headers that MUST be unique if present // RFC 5322 Section 3.6, Headers that MUST be unique if present
var singular = config.main.singular !== 'undefined' var singular = config.main.singular !== undefined
? config.main.singular.split(',') ? config.main.singular.split(',')
: ['Date', 'From', 'Sender', 'Reply-To', 'To', 'Cc', : ['Date', 'From', 'Sender', 'Reply-To', 'To', 'Cc',
'Bcc', 'Message-Id', 'In-Reply-To', 'References', 'Bcc', 'Message-Id', 'In-Reply-To', 'References',
Expand All @@ -33,7 +33,7 @@ exports.missing_required = function(next, connection) {
var config = this.config.get('data.headers.ini'); var config = this.config.get('data.headers.ini');


// Enforce RFC 5322 Section 3.6, Headers that MUST be present // Enforce RFC 5322 Section 3.6, Headers that MUST be present
var required = config.main.required !== 'undefined' var required = config.main.required !== undefined
? config.main.required.split(',') ? config.main.required.split(',')
: ['Date', 'From']; : ['Date', 'From'];


Expand Down

0 comments on commit 5451176

Please sign in to comment.