Fix NameError issue in Client.send_file.
This commit is contained in:
parent
3862b1abcf
commit
3ec99a7cb8
@ -1064,10 +1064,8 @@ class Client:
|
|||||||
files = aiohttp.FormData()
|
files = aiohttp.FormData()
|
||||||
|
|
||||||
# we don't want the content-type json in this request
|
# we don't want the content-type json in this request
|
||||||
headers = {
|
headers = self.headers.copy()
|
||||||
'authorization': self.token,
|
headers.pop('content-type', None)
|
||||||
'user-agent': user_agent.format(library_version, sys.version_info, aiohttp.__version__)
|
|
||||||
}
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# attempt to open the file and send the request
|
# attempt to open the file and send the request
|
||||||
|
Loading…
x
Reference in New Issue
Block a user