Udapte getHeaders

getHeaders now returns decoded headers