Keep header/footer during REST

Change-Id: I5f9c2fcd13ce3fd2ee6a8a53aa83db434081ae55