Added the possibility for plugins to change Content-Type