using the values submitted by a webfrom served by express to initiate crawl using request + cheerio.
the parts work separately, when put together i get an error: Can't set headers after they are sent.
what's wrong here?
router.post('/', function(req, res){
res.json('processing')
crawl(r.keyword, r.tld, r.brand).then(function(d){
userObject.urlCache = d;
})
})