Compare commits
No commits in common. "2f8920eefeb708ba5c7d4fa1608495ee8ff2f294" and "218db3a175df35949e2dab947ec0aadcc807d52c" have entirely different histories.
2f8920eefe
...
218db3a175
2 changed files with 2 additions and 5 deletions
|
@ -109,7 +109,5 @@ async fn main() -> Result<(), PostWomanError> {
|
|||
// },
|
||||
}
|
||||
|
||||
eprintln!();
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -152,14 +152,13 @@ impl Endpoint {
|
|||
StringOr::Str(_query) => todo!(),
|
||||
StringOr::T(Extractor::Discard) => "".to_string(),
|
||||
StringOr::T(Extractor::Debug) => format!("{res:#?}\n"),
|
||||
StringOr::T(Extractor::Body) => res.text().await? + "\n",
|
||||
StringOr::T(Extractor::Body) => res.text().await?,
|
||||
StringOr::T(Extractor::Header { key }) => res
|
||||
.headers()
|
||||
.get(&key)
|
||||
.ok_or(PostWomanError::HeaderNotFound(key))?
|
||||
.to_str()?
|
||||
.to_string()
|
||||
+ "\n",
|
||||
.to_string(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue