mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove writeJSONEnv
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
This commit is contained in:
parent
afd5636461
commit
27811355bd
1 changed files with 0 additions and 8 deletions
|
@ -223,14 +223,6 @@ func httpError(w http.ResponseWriter, err error) {
|
|||
http.Error(w, err.Error(), statusCode)
|
||||
}
|
||||
|
||||
// writeJSONEnv writes the engine.Env values to the http response stream as a
|
||||
// json encoded body.
|
||||
func writeJSONEnv(w http.ResponseWriter, code int, v engine.Env) error {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(code)
|
||||
return v.Encode(w)
|
||||
}
|
||||
|
||||
// writeJSON writes the value v to the http response stream as json with standard
|
||||
// json encoding.
|
||||
func writeJSON(w http.ResponseWriter, code int, v interface{}) error {
|
||||
|
|
Loading…
Add table
Reference in a new issue