avoid header sent exception when proxyError