mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-02 19:16:42 +00:00
Fix more client/server version tests.
This commit is contained in:
parent
2e40fb8608
commit
6fee543ce7
@ -95,7 +95,7 @@ class ServerHandler:
|
|||||||
})
|
})
|
||||||
def check_version(request, response):
|
def check_version(request, response):
|
||||||
if request.json["version"] != __version__:
|
if request.json["version"] != __version__:
|
||||||
raise HTTPConflict(text="Client version {} differs with server version {}".format(request.json["version"], __version__))
|
raise HTTPConflict(text="Client version {} is not the same as server version {}".format(request.json["version"], __version__))
|
||||||
response.json({"version": __version__})
|
response.json({"version": __version__})
|
||||||
|
|
||||||
@Route.get(
|
@Route.get(
|
||||||
|
Loading…
Reference in New Issue
Block a user