percent encode '&' and '%'

This commit is contained in:
Edward Shen 2020-09-27 16:09:46 -04:00
parent 630f7f803a
commit 5d7629487a
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -19,7 +19,9 @@ const FRAGMENT_ENCODE_SET: &AsciiSet = &CONTROLS
.add(b'<') .add(b'<')
.add(b'>') .add(b'>')
.add(b'`') .add(b'`')
.add(b'+'); .add(b'+')
.add(b'&') // Interpreted as a GET query
.add(b'#'); // Interpreted as a hyperlink section target
type StateData = Data<Arc<RwLock<State>>>; type StateData = Data<Arc<RwLock<State>>>;