[FIX] resolve bug

This commit is contained in:
goodrain 2017-11-23 14:54:56 +08:00
parent f9f1828b73
commit 4be8da4b9b

View File

@ -101,5 +101,7 @@ func SourcesEnv(w http.ResponseWriter, r *http.Request) {
return
}
w.WriteHeader(200)
w.Write([]byte(ss.SourceBody.EnvVal))
if value, ok := ss.SourceBody.EnvVal.(string); ok {
w.Write([]byte(value))
}
}