Comparing version 1.0.0 to 1.1.0
@@ -111,3 +111,3 @@ /*global unescape*/ | ||
rfc2231.encodeAndFoldParameters = function (decodedParameters, maxFragmentLength) { | ||
rfc2231.encodeAndFoldParameters = function (decodedParameters, maxFragmentLength, forceUtf8) { | ||
var encodedParameters = {}; | ||
@@ -121,3 +121,3 @@ maxFragmentLength = maxFragmentLength || 60; | ||
i; | ||
if (canBeLatin1EncodedRegExp.test(value)) { | ||
if (!forceUtf8 && canBeLatin1EncodedRegExp.test(value)) { | ||
encodedValue = "iso-8859-1''"; | ||
@@ -124,0 +124,0 @@ for (i = 0 ; i < value.length ; i += 1) { |
{ | ||
"name": "rfc2231", | ||
"version": "1.0.0", | ||
"description": "Encode and decode rfc2231/rfc6266", | ||
"version": "1.1.0", | ||
"description": "Encode and decode rfc2231/rfc5987", | ||
"main": "lib/rfc2231.js", | ||
@@ -6,0 +6,0 @@ "directories": { |
20038