Reverting getHeaders to resolve a redirect issue.