src: browser: fix the entirely broken fillOutputHeaders