examples: fix put_new_header()

I've changed it static method and forgotten update examples.