Minor fix : code cleanup
Exported response headers too

Refs #4001