add + to encode set
This commit is contained in:
parent
66acf64421
commit
9ec219e9c7
1 changed files with 7 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue