mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fixes Issue# 3450
Docker-DCO-1.1-Signed-off-by: Gopikannan Venugopalsamy <gopikannan.venugopalsamy@gmail.com> (github: vgeta)
This commit is contained in:
parent
c23b15b9d8
commit
e45b87031c
1 changed files with 1 additions and 1 deletions
2
api.go
2
api.go
|
@ -1054,7 +1054,7 @@ func makeHttpHandler(srv *Server, logging bool, localMethod string, localRoute s
|
||||||
}
|
}
|
||||||
|
|
||||||
if version == 0 || version > APIVERSION {
|
if version == 0 || version > APIVERSION {
|
||||||
w.WriteHeader(http.StatusNotFound)
|
http.Error(w, fmt.Errorf("client and server don't have same version (client : %g, server: %g)", version, APIVERSION).Error(), http.StatusNotFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue