forked from alemi/upub
fix: include method in request target
This commit is contained in:
parent
437859008c
commit
652af15771
1 changed files with 5 additions and 1 deletions
|
@ -133,7 +133,11 @@ impl HttpSignature {
|
||||||
for header in self.headers.iter() {
|
for header in self.headers.iter() {
|
||||||
match header.as_str() {
|
match header.as_str() {
|
||||||
"(request-target)" => out.push(
|
"(request-target)" => out.push(
|
||||||
format!("(request-target): {}", parts.uri.path_and_query().map(|x| x.as_str()).unwrap_or("/"))
|
format!(
|
||||||
|
"(request-target): {} {}",
|
||||||
|
parts.method.to_string().to_lowercase(),
|
||||||
|
parts.uri.path_and_query().map(|x| x.as_str()).unwrap_or("/")
|
||||||
|
)
|
||||||
),
|
),
|
||||||
// TODO other pseudo-headers,
|
// TODO other pseudo-headers,
|
||||||
_ => out.push(format!("{}: {}",
|
_ => out.push(format!("{}: {}",
|
||||||
|
|
Loading…
Reference in a new issue