Skip to content

Commit

Permalink
fix: failed to replace URL parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
cntvc committed Nov 29, 2023
1 parent 57d0f50 commit e64bc24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions star_rail/core/async_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ async def request(
headers: dict[str, str] = None,
**kwargs,
) -> dict[str, str]:
log_url = url
if params:
url.with_query(replace_params_values(params, ["authkey"], "***"))
log_url = url.update_query(replace_params_values(params, ["authkey"], "***"))
logger.info(
"[{}] {} {}",
method,
url,
log_url,
"\n" + json.dumps(data, separators=(",", ":")) if data else "",
)

Expand Down

0 comments on commit e64bc24

Please sign in to comment.