Fix for-in issue

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-01-20 21:08:46 -02:00
parent 2bd26d6b8f
commit b1c32064c0
1 changed files with 3 additions and 1 deletions

View File

@ -36,8 +36,10 @@ HTTPBinary.prototype.emit = function(cloudevent){
// Have extensions?
var exts = cloudevent.getExtensions();
for(var ext in exts){
if({}.hasOwnProperty.call(exts, ext)){
_headers["ce-" + ext] = exts[ext];
}
}
// Return the Promise
return axios.request(_config);