1
0
mirror of https://github.com/actix/examples synced 2025-01-22 22:05:57 +01:00

Fix client.py paths

This commit is contained in:
Cristian Re 2019-08-09 18:19:18 -03:00
parent 44053504ad
commit ffb1b40dc2

View File

@ -12,7 +12,7 @@ async def req1():
writer.append_json({'passed': True})
resp = await aiohttp.ClientSession().request(
"post", 'http://localhost:8080/multipart',
"post", 'http://localhost:8080/',
data=writer, headers=writer.headers)
print(resp)
assert 200 == resp.status
@ -25,7 +25,7 @@ async def req2():
writer.append(open('src/main.rs'))
resp = await aiohttp.ClientSession().request(
"post", 'http://localhost:8080/multipart',
"post", 'http://localhost:8080/',
data=writer, headers=writer.headers)
print(resp)
assert 200 == resp.status