show <bytes content> for binary/images
This commit is contained in:
parent
f97c07ac7b
commit
fe8e4b0615
1 changed files with 2 additions and 1 deletions
|
|
@ -139,6 +139,7 @@ class ConfServer:
|
||||||
async with session.request(request.method, ecorequest) as resp:
|
async with session.request(request.method, ecorequest) as resp:
|
||||||
if resp.content_type == "application/octet-stream":
|
if resp.content_type == "application/octet-stream":
|
||||||
ecoresp = await resp.read()
|
ecoresp = await resp.read()
|
||||||
|
proxymodelog.info(f"HTTP Proxy Response from EcoVacs (URL: {ecorequest}) - (Status: {resp.status}) - <BYTES CONTENT>")
|
||||||
else:
|
else:
|
||||||
ecoresp = await resp.text()
|
ecoresp = await resp.text()
|
||||||
proxymodelog.info(f"HTTP Proxy Response from EcoVacs (URL: {ecorequest}) - (Status: {resp.status}) - {ecoresp}")
|
proxymodelog.info(f"HTTP Proxy Response from EcoVacs (URL: {ecorequest}) - (Status: {resp.status}) - {ecoresp}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue