1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-30 20:28:08 +00:00

Support utf-8 characters in user and password for auth

Fix #959
This commit is contained in:
Julien Duponchelle 2017-03-23 15:50:02 +01:00
parent bbfd56606c
commit 541afe9660
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -128,7 +128,7 @@ class Compute:
self._user = user.strip() self._user = user.strip()
if password: if password:
self._password = password.strip() self._password = password.strip()
self._auth = aiohttp.BasicAuth(self._user, self._password) self._auth = aiohttp.BasicAuth(self._user, self._password, "utf-8")
else: else:
self._password = None self._password = None
self._auth = aiohttp.BasicAuth(self._user, "") self._auth = aiohttp.BasicAuth(self._user, "")