最近在看Sinatra 1.3.5的源码。在Sinatra::Helpers模块中看到一个名为uri
的方法,用来将一个相对路径转换为绝对路径。在该函数的代码中看到分别针对request.script_name和request.path_info进行了处理。
Last active
July 9, 2020 07:35
-
-
Save loveky/5185871 to your computer and use it in GitHub Desktop.
Sinatra中request.path_info和request.script_name的区别
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment