Write the Content-Type header before WriteHeader