Please now use
res.put_header_lines (h)