FIX: return content-type before printHeader