Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update data.headers.js

Removed quotes from 'undefined' in ll. 17/37 to prevent error for non-existing config file.
  • Loading branch information...
commit 54511765a4a473589e00fd7f2883c9b069828942 1 parent 50bc7ef
Peter Janotta pjanotta authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/data.headers.js
4 plugins/data.headers.js
View
@@ -13,7 +13,7 @@ exports.duplicate_singular = function(next, connection) {
var config = this.config.get('data.headers.ini');
// 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(',')
: ['Date', 'From', 'Sender', 'Reply-To', 'To', 'Cc',
'Bcc', 'Message-Id', 'In-Reply-To', 'References',
@@ -33,7 +33,7 @@ exports.missing_required = function(next, connection) {
var config = this.config.get('data.headers.ini');
// 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(',')
: ['Date', 'From'];
Please sign in to comment.
Something went wrong with that request. Please try again.