1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-10-04 17:33:21 +08:00

Fix session config for docker image

This commit is contained in:
Marcos Lilljedahl
2016-11-14 22:08:53 -03:00
parent 6a0e07aeec
commit e8d69d6a21
4 changed files with 11 additions and 6 deletions

View File

@@ -25,6 +25,8 @@ func NewInstance(rw http.ResponseWriter, req *http.Request) {
i, err := services.NewInstance(s)
if err != nil {
log.Println(err)
rw.WriteHeader(http.StatusInternalServerError)
return
//TODO: Set a status error
} else {
json.NewEncoder(rw).Encode(i)