use request pathname for content-type and charset