Browse code

Merge pull request #3665 from vgeta/3450-fix

Fixes Issue #3450

Victor Vieux authored on 2014/01/21 04:10:54
Showing 1 changed files
... ...
@@ -1082,7 +1082,7 @@ func makeHttpHandler(srv *Server, logging bool, localMethod string, localRoute s
1082 1082
 		}
1083 1083
 
1084 1084
 		if version == 0 || version > APIVERSION {
1085
-			w.WriteHeader(http.StatusNotFound)
1085
+			http.Error(w, fmt.Errorf("client and server don't have same version (client : %g, server: %g)", version, APIVERSION).Error(), http.StatusNotFound)
1086 1086
 			return
1087 1087
 		}
1088 1088