Added function to application for cleaning outgoing headers