send http headers differently to fix validation warnings