Don't follow redirect on ingress itself (#24218)
* Don't follow redirect on ingress itself * Fix comment
This commit is contained in:
parent
46cc6e199b
commit
35f5784287
1 changed files with 6 additions and 2 deletions
|
@ -119,8 +119,12 @@ class HassIOIngress(HomeAssistantView):
|
|||
source_header = _init_header(request, token)
|
||||
|
||||
async with self._websession.request(
|
||||
request.method, url, headers=source_header,
|
||||
params=request.query, data=data
|
||||
request.method,
|
||||
url,
|
||||
headers=source_header,
|
||||
params=request.query,
|
||||
allow_redirects=False,
|
||||
data=data
|
||||
) as result:
|
||||
headers = _response_header(result)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue