Fix headers response build

On some kind of response, the way to retrieve headers is through ```response.headers```.