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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user