Fix headers

The actual key generated here is numeric, and the name is in `value['name']` rather than in `header`. 

An example of the bug is that the Content-Type header is redered as 0

so you see `0: text/plain` instead of `Content-Type: text/plain`