fix issue with xml or javascript headers