Skip to content

Commit fbcbcec

Browse files
helio-frotafabiojose
authored andcommitted
fix: protects the consts from being changed in other parts of the code.
Signed-off-by: Helio Frota <00hf11@gmail.com>
1 parent 005d532 commit fbcbcec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/bindings/http/constants.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Commons
2-
module.exports = {
2+
module.exports = Object.freeze({
33
HEADERS: "headers",
44
CHARSET_DEFAULT: "utf-8",
55

@@ -68,4 +68,4 @@ module.exports = {
6868
DATA: "data",
6969
DATA_BASE64: "data_base64"
7070
}
71-
};
71+
});

0 commit comments

Comments
 (0)