Skip to content

Commit

Permalink
Update deprecated decodestring method to decodebytes to fix RPC2 uplo…
Browse files Browse the repository at this point in the history
…ad (qgis#398)
  • Loading branch information
Xpirix authored May 7, 2024
1 parent 644e145 commit b023a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qgis-app/plugins/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def middleware(request):
if auth_basic and not str(auth_basic).startswith('Bearer'):
import base64

username, dummy, password = base64.decodestring(
username, dummy, password = base64.decodebytes(
auth_basic[6:].encode("utf8")
).partition(b":")
username = username.decode("utf8")
Expand Down

0 comments on commit b023a13

Please sign in to comment.