rest adapter: fix header support