aboutsummaryrefslogtreecommitdiff
path: root/src/api/http_util.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-28 10:18:14 +0000
committerAlex Auvolat <alex@adnab.me>2020-04-28 10:18:14 +0000
commit0957d0fdfadb27e49c24d63994f52197a9c9cd1c (patch)
tree35b048599d44de01650d99ccc2de942498ac4038 /src/api/http_util.rs
parentbe35cbdce2bd4e42a2bfc41ff5b21e332d20eb29 (diff)
downloadgarage-0957d0fdfadb27e49c24d63994f52197a9c9cd1c.tar.gz
garage-0957d0fdfadb27e49c24d63994f52197a9c9cd1c.zip
Work on API
Diffstat (limited to 'src/api/http_util.rs')
-rw-r--r--src/api/http_util.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/api/http_util.rs b/src/api/http_util.rs
index 2f052117..029b7020 100644
--- a/src/api/http_util.rs
+++ b/src/api/http_util.rs
@@ -82,9 +82,3 @@ impl From<Vec<u8>> for BytesBody {
Self::new(Bytes::from(x))
}
}
-
-pub fn xml_escape(s: &str) -> String {
- s.replace("<", "&lt;")
- .replace(">", "&gt;")
- .replace("\"", "&quot;")
-}