Ver Fonte

Do not encode ` in query, per spec change.

https://github.com/whatwg/url/commit/f54c44d1f790dd2b8913e955ba6d334c6f14a048
Simon Sapin há 11 anos atrás
pai
commit
67fbc8db2e
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      make_encode_sets.py
  2. 1 1
      src/encode_sets.rs

+ 1 - 1
make_encode_sets.py

@@ -23,7 +23,7 @@ print('''\
 ''')
 for name, encoded in [
     ('SIMPLE',   ''),
-    ('QUERY',    r''' "#<>`'''),
+    ('QUERY',    r''' "#<>'''),
     ('DEFAULT',  r''' "#<>`?{}'''),
     ('USERINFO', r''' "#<>`?{}@'''),
     ('PASSWORD', r''' "#<>`?{}@\/'''),

+ 1 - 1
src/encode_sets.rs

@@ -57,7 +57,7 @@ pub static QUERY: [&'static str; 256] = [
    "H", "I", "J", "K", "L", "M", "N", "O",
    "P", "Q", "R", "S", "T", "U", "V", "W",
    "X", "Y", "Z", "[", "\\", "]", "^", "_",
-   "%60", "a", "b", "c", "d", "e", "f", "g",
+   "`", "a", "b", "c", "d", "e", "f", "g",
    "h", "i", "j", "k", "l", "m", "n", "o",
    "p", "q", "r", "s", "t", "u", "v", "w",
    "x", "y", "z", "{", "|", "}", "~", "%7F",