Fixed bad header generation for legacy content-type header