Description
Related links:
- How should servers utilise
root_path
#229 - Starlette version 0.33.0 encode/starlette#2361
- https://github.com/search?q=scope%5B%22path%22%5D+language%3APython&type=code&l=Python
In the first link, @andrewgodwin stated the differences between root_path and path in WSGI. After Starlette actively followed up, this led to the problem in the second link.
Yes, we can make some changes to make it work again, but the question is what is the existing community implementation?
I searched for the code via GitHub and can view the results via the third link. I noticed that in the first page of results, everyone except hypercorn and starlette treat path as the equivalent of PATH_INFO in WSGI. They get the full path by concatenating root_path and path.
So I think we should modify the specification document so that path is exactly the same as PATH_INFO. Otherwise, this will have a strong impact on the existing implementation of the community.
A polite mention of the author of code in the search results, I hope this doesn't bother you. @Kludex @pgjones @kennethreitz @Goldziher @simonw @RobertoPrevato @long2ice If you have time, could you express some thoughts on this?