Selaa lähdekoodia

Merge pull request #3665 from vgeta/3450-fix

Fixes Issue #3450
Victor Vieux 11 vuotta sitten
vanhempi
commit
69be8adb68
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      api.go

+ 1 - 1
api.go

@@ -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
 		}