percent encode '&' and '%'

master
Edward Shen 2020-09-27 16:09:46 -04:00
parent 630f7f803a
commit 5d7629487a
Signed by: edward
GPG Key ID: 19182661E818369F
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ const FRAGMENT_ENCODE_SET: &AsciiSet = &CONTROLS
.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>>>;