diff --git a/gns3server/utils/images.py b/gns3server/utils/images.py index 0f7bc8f5..794d19e7 100644 --- a/gns3server/utils/images.py +++ b/gns3server/utils/images.py @@ -79,7 +79,7 @@ def list_images(type): images.append({ "filename": filename, - "path": path, + "path": force_unix_path(path), "md5sum": md5sum(os.path.join(root, filename)), "filesize": os.stat(os.path.join(root, filename)).st_size}) except OSError as e: diff --git a/tests/handlers/api/controller/test_symbol.py b/tests/handlers/api/controller/test_symbol.py index be6a4010..0d41f441 100644 --- a/tests/handlers/api/controller/test_symbol.py +++ b/tests/handlers/api/controller/test_symbol.py @@ -35,11 +35,7 @@ def test_symbols(http_controller): def test_get(http_controller): response = http_controller.get('/symbols/' + urllib.parse.quote(':/symbols/firewall.svg') + '/raw') assert response.status == 200 - # Different carriage return - if sys.platform.startswith("win"): - assert response.headers['CONTENT-LENGTH'] == '9568' - else: - assert response.headers['CONTENT-LENGTH'] == '9381' + assert response.headers['CONTENT-LENGTH'] == '9381' assert response.headers['CONTENT-TYPE'] == 'image/svg+xml' assert '' in response.html