send Content-Type automatically if it can be determined (and unless it is set already, of course). also refs #333