dfdsf
This commit is contained in:
@@ -200,6 +200,10 @@ class HydrusNetwork:
|
||||
content = spec.data
|
||||
else:
|
||||
json_data = spec.data
|
||||
# Hydrus expects JSON bodies to be sent with Content-Type: application/json.
|
||||
# httpx will usually set this automatically, but we set it explicitly to
|
||||
# match the Hydrus API docs and avoid edge cases.
|
||||
headers.setdefault("Content-Type", "application/json")
|
||||
logger.debug(f"{self._log_prefix()} Request body size: {len(content) if content else 'json'}")
|
||||
|
||||
response = client.request(
|
||||
|
||||
Reference in New Issue
Block a user