Merge pull request #512 from subyraman/fix-url-building
Fix `request.url` and other url properties
This commit is contained in:
@@ -17,7 +17,9 @@ class SanicTestClient:
|
||||
host=HOST, port=PORT, uri=uri)
|
||||
|
||||
log.info(url)
|
||||
async with aiohttp.ClientSession(cookies=cookies) as session:
|
||||
conn = aiohttp.TCPConnector(verify_ssl=False)
|
||||
async with aiohttp.ClientSession(
|
||||
cookies=cookies, connector=conn) as session:
|
||||
async with getattr(
|
||||
session, method.lower())(url, *args, **kwargs) as response:
|
||||
response.text = await response.text()
|
||||
|
||||
Reference in New Issue
Block a user