Fix version checker GitHub api url (#4773)

This commit is contained in:
shamoon 2023-12-02 07:56:56 -08:00 committed by GitHub
parent 4ca1503beb
commit 5a20c8e512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1158,8 +1158,8 @@ class RemoteVersionView(GenericAPIView):
current_version = packaging_version.parse(version.__full_version_str__) current_version = packaging_version.parse(version.__full_version_str__)
try: try:
req = urllib.request.Request( req = urllib.request.Request(
"https://api.github.com/repos/paperlessngx/" "https://api.github.com/repos/paperless-ngx/"
"paperlessngx/releases/latest", "paperless-ngx/releases/latest",
) )
# Ensure a JSON response # Ensure a JSON response
req.add_header("Accept", "application/json") req.add_header("Accept", "application/json")