Skip to content

Commit b1c3206

Browse files
committed
Fix for-in issue
Signed-off-by: Fabio José <[email protected]>
1 parent 2bd26d6 commit b1c3206

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/bindings/http/binary_0_2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ HTTPBinary.prototype.emit = function(cloudevent){
3636
// Have extensions?
3737
var exts = cloudevent.getExtensions();
3838
for(var ext in exts){
39-
_headers["ce-" + ext] = exts[ext];
39+
if({}.hasOwnProperty.call(exts, ext)){
40+
_headers["ce-" + ext] = exts[ext];
41+
}
4042
}
4143

4244
// Return the Promise

0 commit comments

Comments
 (0)