treat content-type differently in browser and node