File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ def request_host(request):
138
138
b"ABCDEFGHIJKLMNOPQRSTUVWXYZ" b"abcdefghijklmnopqrstuvwxyz" b"0123456789._!-"
139
139
))
140
140
USERINFO_CHARS = ZONE_ID_CHARS | set (bytearray (b"$&'()*+,;=:" ))
141
- PATH_CHARS = USERINFO_CHARS | set (bytearray (b'@/' ))
141
+ PATH_CHARS = USERINFO_CHARS | set (bytearray (b'@/~ ' ))
142
142
QUERY_CHARS = FRAGMENT_CHARS = PATH_CHARS | {ord (b"?" )}
143
143
144
144
Original file line number Diff line number Diff line change @@ -1871,11 +1871,11 @@ def test_add_data(self):
1871
1871
self .assertEqual ("POST" , self .get .get_method ())
1872
1872
1873
1873
def test_get_full_url (self ):
1874
- self .assertEqual ("http://www.python.org/%7Ejeremy /" ,
1874
+ self .assertEqual ("http://www.python.org/~jeremy /" ,
1875
1875
self .get .get_full_url ())
1876
1876
1877
1877
def test_selector (self ):
1878
- self .assertEqual ("/%7Ejeremy /" , self .get .get_selector ())
1878
+ self .assertEqual ("/~jeremy /" , self .get .get_selector ())
1879
1879
req = Request ("http://www.python.org/" )
1880
1880
self .assertEqual ("/" , req .get_selector ())
1881
1881
You can’t perform that action at this time.
0 commit comments