lib/hanami/routing/http_router.rb in hanami-router-0.6.1 vs lib/hanami/routing/http_router.rb in hanami-router-0.6.2
- old
+ new
@@ -29,11 +29,11 @@
# public API from any future change of ::HttpRouter.
#
# @since 0.1.0
# @api private
class HttpRouter < ::HttpRouter
- # Script name - rack enviroment variable
+ # Script name - rack environment variable
#
# @since 0.5.0
# @api private
SCRIPT_NAME = 'SCRIPT_NAME'.freeze
@@ -159,10 +159,10 @@
# @api private
# @since 0.5.0
def rewrite_path_info(env, request)
super
- env[SCRIPT_NAME] = @prefix + env[SCRIPT_NAME]
+ env[SCRIPT_NAME] = @prefix.join(env[SCRIPT_NAME])
end
private
def _rescue_url_recognition