Re-add the set_header_alg and set_body_alg functions, but only for the tests
This commit is contained in:
parent
d78fd34995
commit
9c109ed1f6
1 changed files with 12 additions and 0 deletions
|
@ -47,6 +47,18 @@ impl Canonicalization {
|
|||
CanonicalizationType::Simple => body_simple(body),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn set_header_alg(mut self, alg: CanonicalizationType) -> Self {
|
||||
self.header_alg = alg;
|
||||
self
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn set_body_alg(mut self, alg: CanonicalizationType) -> Self {
|
||||
self.body_alg = alg;
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Canonicalization {
|
||||
|
|
Loading…
Reference in a new issue