fix(uriproxy): oops reverted fix again replacing '+'
This commit is contained in:
parent
4a17c12b58
commit
c6602d0669
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ impl AsRef<str> for UriClass {
|
|||
/// unpack uri in id if valid, otherwise compose full uri with "{base}/{entity}/{id}"
|
||||
pub fn uri(base: &str, entity: UriClass, id: &str) -> String {
|
||||
if id.starts_with('+') { // ready-to-use base64-encoded id
|
||||
if let Ok(bytes) = base64::prelude::BASE64_URL_SAFE.decode(id) {
|
||||
if let Ok(bytes) = base64::prelude::BASE64_URL_SAFE.decode(id.replacen('+', "", 1)) {
|
||||
if let Ok(uri) = std::str::from_utf8(&bytes) {
|
||||
return uri.to_string();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue