encode URL when checking if it has been bookmarked
URLs with '#' were not getting identified correctly when getting checked. Encoding the URL fixes this.
This commit is contained in:
parent
6c2f155763
commit
6ade0c3bd4
|
|
@ -42,7 +42,7 @@ from os import environ, path
|
|||
from sys import argv, exit
|
||||
|
||||
from PyQt5.QtWidgets import QApplication, QInputDialog, QLineEdit
|
||||
from requests import get, post
|
||||
from requests import get, post, utils
|
||||
from requests.auth import HTTPBasicAuth
|
||||
|
||||
|
||||
|
|
@ -125,7 +125,7 @@ auth = HTTPBasicAuth(settings["user"], settings["password"])
|
|||
|
||||
# check if there is already a bookmark for the URL
|
||||
r = get(
|
||||
"{}?url={}".format(api_url, QUTE_URL),
|
||||
"{}?url={}".format(api_url, utils.quote(QUTE_URL, safe="")),
|
||||
auth=auth,
|
||||
headers=headers,
|
||||
timeout=(3.05, 27),
|
||||
|
|
|
|||
Loading…
Reference in New Issue