mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Don't follow redirect on ingress itself (#24218)
* Don't follow redirect on ingress itself * Fix comment
This commit is contained in:
parent
5610541515
commit
261f3bcba6
@ -119,8 +119,12 @@ class HassIOIngress(HomeAssistantView):
|
|||||||
source_header = _init_header(request, token)
|
source_header = _init_header(request, token)
|
||||||
|
|
||||||
async with self._websession.request(
|
async with self._websession.request(
|
||||||
request.method, url, headers=source_header,
|
request.method,
|
||||||
params=request.query, data=data
|
url,
|
||||||
|
headers=source_header,
|
||||||
|
params=request.query,
|
||||||
|
allow_redirects=False,
|
||||||
|
data=data
|
||||||
) as result:
|
) as result:
|
||||||
headers = _response_header(result)
|
headers = _response_header(result)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user