Fix header content type api

Fixes #4121