Tal Einat <taleinat+pyt...@gmail.com> added the comment:

According to section 3.3 of RFC 3986[1], and also RFC 2396[2] which preceded 
it, a path is made up of zero or more consecutive "/" + section  pieces, and a 
section may be empty. In other words, paths may include consecutive slashes.

Several StackOverflow answers to questions on this subject (e.g. this[3], and 
this[4]) also agree that consecutive slashes are valid, based on the 
aforementioned RFCs and other references.

.. [1]: https://tools.ietf.org/html/rfc3986#section-3.3
.. [2]: https://tools.ietf.org/html/rfc2396#section-3.3
.. [3]: 
https://stackoverflow.com/questions/20523318/is-a-url-with-in-the-path-section-valid
.. [4]: 
https://stackoverflow.com/questions/10161177/url-with-multiple-forward-slashes-does-it-break-anything

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40594>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to