const _ = require('lodash');

exports.processHeaders = function processHeaders(headerParams, options) {
  if (headerParams) {
    const customHeaders = _.isArray(headerParams) ? headerParams : [ headerParams ];
    customHeaders.forEach(header => {
      const [key, value] = header.split(':').map(str => str.trim());
      options.headers[key] = value;
    });
  }
}


@@ -258,20 +258,20 @@
 nst 
-%5B
 key
-, v
+V
 alue
-%5D
+Pair
  = h
@@ -340,17 +340,39 @@
 %5Bkey
-%5D = value
+ValuePair%5B0%5D%5D = keyValuePair%5B1%5D
 ;%0A  

Remove destructuring for node 4 compatibility