Switched back to using Express res.set() to change content-type