shipharbor / merry

:ocean::ocean::sailboat::ocean::ocean: - cute streaming API framework
MIT License
312 stars 21 forks source link

handle undefined for done() #31

Closed yoshuawuyts closed 7 years ago

yoshuawuyts commented 7 years ago

Allow this to work:

done()

Right now it bugs out because it tries to cast undefined to a stream. We should just not send a body at this point. Workaround for now is:

done(null, '')