Replace setHeaders() with getHeaders()