add + to encode set

This commit is contained in:
Edward Shen 2019-12-23 10:20:35 -05:00
parent 66acf64421
commit 9ec219e9c7
Signed by: edward
GPG key ID: F350507060ED6C90

View file

@ -11,8 +11,13 @@ use std::collections::HashMap;
use std::sync::{Arc, RwLock}; use std::sync::{Arc, RwLock};
/// https://url.spec.whatwg.org/#fragment-percent-encode-set /// https://url.spec.whatwg.org/#fragment-percent-encode-set
static FRAGMENT_ENCODE_SET: &AsciiSet = static FRAGMENT_ENCODE_SET: &AsciiSet = &CONTROLS
&CONTROLS.add(b' ').add(b'"').add(b'<').add(b'>').add(b'`'); .add(b' ')
.add(b'"')
.add(b'<')
.add(b'>')
.add(b'`')
.add(b'+');
#[get("/ls")] #[get("/ls")]
pub fn list(data: Data<Arc<RwLock<State>>>) -> impl Responder { pub fn list(data: Data<Arc<RwLock<State>>>) -> impl Responder {