try building a package
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
a314af7f8b
commit
32f18dde86
9
http.go
9
http.go
|
@ -73,9 +73,18 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
|
|||
for _, dir := range c.Dirs {
|
||||
log.Info("append dir", dir)
|
||||
fmt.Fprintln(w, "append dir", dir)
|
||||
var found bool = false
|
||||
for _, d := range me.dirs {
|
||||
if d == dir {
|
||||
found = true
|
||||
}
|
||||
}
|
||||
if ! found {
|
||||
me.dirs = append(me.dirs, dir)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if tmp == "/start" {
|
||||
log.Info("/start jcarr actually doing START")
|
||||
|
|
Loading…
Reference in New Issue