Tabcorp / restify-cors-middleware

CORS middleware with full W3C spec support
108 stars 64 forks source link

don't run forEach on undefined #50

Closed gswalden closed 6 years ago

gswalden commented 7 years ago

Fixes issue to close #44

retrohacker commented 7 years ago

Thanks for the contribution @gswalden!

Would you mind adding a quick test to validate the behaviour? Something as simple as checking to make sure the module doesn't explode when not passing forEach would suffice :heart:

retrohacker commented 6 years ago

Thanks @gswalden! LGTM!