Fix for-in issue
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
2bd26d6b8f
commit
b1c32064c0
|
|
@ -36,8 +36,10 @@ HTTPBinary.prototype.emit = function(cloudevent){
|
||||||
// Have extensions?
|
// Have extensions?
|
||||||
var exts = cloudevent.getExtensions();
|
var exts = cloudevent.getExtensions();
|
||||||
for(var ext in exts){
|
for(var ext in exts){
|
||||||
|
if({}.hasOwnProperty.call(exts, ext)){
|
||||||
_headers["ce-" + ext] = exts[ext];
|
_headers["ce-" + ext] = exts[ext];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Return the Promise
|
// Return the Promise
|
||||||
return axios.request(_config);
|
return axios.request(_config);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue