add + to encode set

master
Edward Shen 2019-12-23 10:20:35 -05:00
parent 66acf64421
commit 9ec219e9c7
Signed by: edward
GPG Key ID: F350507060ED6C90
1 changed files with 7 additions and 2 deletions

View File

@ -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<Arc<RwLock<State>>>) -> impl Responder {