From d2e55b4c12ea57b4335573e008a3b7c18b84c0fa Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 2 Jan 2021 14:46:46 +0100 Subject: [PATCH] Fix URL quoting (wrong function) --- update_unstable.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update_unstable.py b/update_unstable.py index 5058b47..5cbff06 100755 --- a/update_unstable.py +++ b/update_unstable.py @@ -6,7 +6,7 @@ import argparse import logging import json from pathlib import Path -from urllib.parse import urlencode +from urllib.parse import quote import git import requests @@ -50,7 +50,8 @@ class GitHashCache: def project_exists(project): - project_name = urlencode(project) + # We want / to get quoted, so put safe to "" + project_name = quote(project, safe="") request = requests.get(API_URL + project_name) if request: