Fix "http: multiple response.WriteHeader calls"