Core: make header_get() usable with new parser internals

Signed-off-by: Eduardo Silva <eduardo@monkey.io>