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,9 +139,10 @@ class ConfServer:
|
|||
async with session.request(request.method, ecorequest) as resp:
|
||||
if resp.content_type == "application/octet-stream":
|
||||
ecoresp = await resp.read()
|
||||
proxymodelog.info(f"HTTP Proxy Response from EcoVacs (URL: {ecorequest}) - (Status: {resp.status}) - <BYTES CONTENT>")
|
||||
else:
|
||||
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}")
|
||||
|
||||
if resp.status == 200:
|
||||
if resp.content_type == "application/json":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue