1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #3665 from vgeta/3450-fix

Fixes Issue #3450
This commit is contained in:
Victor Vieux 2014-01-20 11:10:54 -08:00
commit 69be8adb68

2
api.go
View file

@ -1082,7 +1082,7 @@ func makeHttpHandler(srv *Server, logging bool, localMethod string, localRoute s
}
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
}