mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 12:36:40 +00:00
Test makehandler
This commit is contained in:
@ -45,12 +45,14 @@ func makeRequestHandler(config *WatchdogConfig) func(http.ResponseWriter, *http.
|
||||
w.Write(response.Bytes())
|
||||
return
|
||||
}
|
||||
w.WriteHeader(200)
|
||||
|
||||
if config.writeDebug == true {
|
||||
os.Stdout.Write(out)
|
||||
}
|
||||
|
||||
w.WriteHeader(200)
|
||||
w.Write(out)
|
||||
} else {
|
||||
w.WriteHeader(http.StatusMethodNotAllowed)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user