Additional debug logging for percent decoding stage
This commit is contained in:
parent
6f71ab08f6
commit
b643fceca3
1 changed files with 5 additions and 1 deletions
|
@ -81,7 +81,11 @@ async fn run_webfinger_query(
|
|||
info!("Received query with {uri}");
|
||||
let query = uri.query().ok_or(StatusCode::BAD_REQUEST)?;
|
||||
debug!("Query string is {query}");
|
||||
let query = urlencoding::decode(query).map_err(|e| StatusCode::BAD_REQUEST)?;
|
||||
let query = urlencoding::decode(query).map_err(|e| {
|
||||
debug!("Failed to decode query string with error {e}");
|
||||
StatusCode::BAD_REQUEST
|
||||
})?;
|
||||
debug!("Decoded query string is {query}");
|
||||
let params = query
|
||||
.split('&')
|
||||
.filter_map(|query_part| {
|
||||
|
|
Loading…
Reference in a new issue