Adding processing of header sent from gateway