Commons functions
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
d1fc0b39f0
commit
c37b31fc3b
|
@ -0,0 +1,13 @@
|
|||
function sanity_and_clone(headers) {
|
||||
var sanity_headers = JSON.parse(JSON.stringify(headers));
|
||||
|
||||
for(header in sanity_headers){
|
||||
sanity_headers[header.toLowerCase()] = sanity_headers[header];
|
||||
}
|
||||
|
||||
return sanity_headers;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
sanity_and_clone : sanity_and_clone
|
||||
};
|
Loading…
Reference in New Issue