diff --git a/src/transaction-runner.coffee b/src/transaction-runner.coffee index d28ffaa66..e7cbd21bc 100644 --- a/src/transaction-runner.coffee +++ b/src/transaction-runner.coffee @@ -675,8 +675,10 @@ class TransactionRunner isMultipart: (headers) -> contentType = caseless(headers).get('Content-Type') - return false unless contentType - return contentType.indexOf('multipart') > -1 + if contentType + contentType.indexOf('multipart') > -1 + else + false # Finds newlines not preceeded by carriage returns and replaces them by # newlines preceeded by carriage returns.