fix usage of deprecated netty header method