Skip to content

Commit f96845a

Browse files
committed
Fix the sanity logic
Signed-off-by: Fabio José <[email protected]>
1 parent 67b3ac2 commit f96845a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/bindings/http/commons.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
function sanity_and_clone(headers) {
2-
var sanity_headers = JSON.parse(JSON.stringify(headers));
2+
//var sanity_headers = JSON.parse(JSON.stringify(headers));
3+
var sanity_headers = {};
34

4-
for(header in sanity_headers){
5-
sanity_headers[header.toLowerCase()] = sanity_headers[header];
5+
for(header in headers){
6+
sanity_headers[header.toLowerCase()] = headers[header];
67
}
78

89
return sanity_headers;

0 commit comments

Comments
 (0)