1
0
Fork 0

Fix URL quoting (wrong function)

This commit is contained in:
Luca Beltrame 2021-01-02 14:46:46 +01:00
parent 5a6bae6b2d
commit d2e55b4c12
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -6,7 +6,7 @@ import argparse
import logging import logging
import json import json
from pathlib import Path from pathlib import Path
from urllib.parse import urlencode from urllib.parse import quote
import git import git
import requests import requests
@ -50,7 +50,8 @@ class GitHashCache:
def project_exists(project): 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) request = requests.get(API_URL + project_name)
if request: if request: