Update http.py

This commit is contained in:
STACIA 2022-08-05 00:22:48 +07:00 committed by GitHub
parent 3ec03d9b06
commit 8e063a116d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ class HTTPClient:
uid = route.uid uid = route.uid
self.__headers.clear() self.__headers.clear()
if not self.__agent != '': if self.__agent != '':
self.__headers['User-Agent'] = self.__agent self.__headers['User-Agent'] = self.__agent
kwargs['headers'] = {**utils.get_default_header(), **self.__headers} kwargs['headers'] = {**utils.get_default_header(), **self.__headers}