Update getHeaders to return an object with an element