function sanityAndClone(headers) {

  var sanityHeaders = {};

  for(header in headers){
    sanityHeaders[header.toLowerCase()] = headers[header];
  }

  return sanityHeaders;
}

module.exports = {
  sanity_and_clone : sanityAndClone
};

@@ -62,32 +62,135 @@
 %0A%0A  
-for(header in headers)%7B%0A
+Array.from(Object.keys(headers))%0A    .filter(header =%3E Object.hasOwnProperty.call(headers, header))%0A    .forEach(header =%3E %7B%0A  
     
@@ -246,17 +246,21 @@
 der%5D;%0A  
-%7D
+  %7D);
 %0A%0A  retu

fix the for guard