diff --git a/dgraph/cmd/zero/license_ee.go b/dgraph/cmd/zero/license_ee.go index f8785299015..edf7753e58f 100644 --- a/dgraph/cmd/zero/license_ee.go +++ b/dgraph/cmd/zero/license_ee.go @@ -130,7 +130,9 @@ func (st *state) applyEnterpriseLicense(w http.ResponseWriter, r *http.Request) x.SetStatus(w, x.ErrorInvalidRequest, err.Error()) return } - x.SetStatus(w, x.Success, "Done") + if _, err := w.Write([]byte(`{"code": "Success", "message": "License applied."}`)); err != nil { + glog.Errorf("Unable to send http response. Err: %v\n", err) + } } // applyLicenseFile applies the license file stored at the given path.