forked from mirrors/kingfisher
Added support for scanning Confluence pages
This commit is contained in:
parent
39588cc098
commit
35e4b9011d
1 changed files with 2 additions and 1 deletions
|
|
@ -94,7 +94,8 @@ pub async fn search_pages(
|
|||
.get(header::LOCATION)
|
||||
.and_then(|v| v.to_str().ok())
|
||||
.map(|s| s.to_string());
|
||||
let body = resp.text().await.unwrap_or_default();
|
||||
let body = resp.text().await.unwrap_or_else(|e| format!("Failed to read response: {}", e));
|
||||
|
||||
if let Some(loc) = location {
|
||||
bail!(
|
||||
"Confluence API request returned {} redirect to {}. Check KF_CONFLUENCE_TOKEN and KF_CONFLUENCE_USER",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue