Commit 8fafa4a1 authored by Caleb Lawson's avatar Caleb Lawson Committed by GitHub

send header so can retrieve user by username (#774)

parent fede7014
......@@ -179,7 +179,7 @@ async def User(url, config, conn, user_id = False):
logme.debug(__name__+':User')
_connector = get_connector(config)
try:
response = await Request(url, connector=_connector)
response = await Request(url, connector=_connector, headers={"X-Requested-With": "XMLHttpRequest"})
soup = BeautifulSoup(response, "html.parser")
if user_id:
return int(inf(soup, "id"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment