request.forwarded
-> request.remote
This commit is contained in:
parent
3e7af6ee47
commit
7f9e475324
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ async def process_json(app, body: dict) -> dict:
|
||||||
@atomic
|
@atomic
|
||||||
async def api_endpoint(request: web.Request):
|
async def api_endpoint(request: web.Request):
|
||||||
try:
|
try:
|
||||||
web.access_logger.info(f'Forwarded headers: {request.forwarded}')
|
web.access_logger.info(f'Forwarded headers: {request.remote}')
|
||||||
body = await request.json()
|
body = await request.json()
|
||||||
if type(body) is list or type(body) is dict:
|
if type(body) is list or type(body) is dict:
|
||||||
if type(body) is list:
|
if type(body) is list:
|
||||||
|
|
Loading…
Reference in a new issue