From 9ec219e9c7ee099ca54ea85d19b7dc1237962d21 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Mon, 23 Dec 2019 10:20:35 -0500 Subject: [PATCH] add + to encode set --- src/routes.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/routes.rs b/src/routes.rs index 311ca85..86a7eff 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -11,8 +11,13 @@ use std::collections::HashMap; use std::sync::{Arc, RwLock}; /// https://url.spec.whatwg.org/#fragment-percent-encode-set -static FRAGMENT_ENCODE_SET: &AsciiSet = - &CONTROLS.add(b' ').add(b'"').add(b'<').add(b'>').add(b'`'); +static FRAGMENT_ENCODE_SET: &AsciiSet = &CONTROLS + .add(b' ') + .add(b'"') + .add(b'<') + .add(b'>') + .add(b'`') + .add(b'+'); #[get("/ls")] pub fn list(data: Data>>) -> impl Responder {