lib/rswag/ui/middleware.rb in rswag-ui-2.2.0 vs lib/rswag/ui/middleware.rb in rswag-ui-2.3.0
- old
+ new
@@ -6,10 +6,10 @@
@config = config
super(app, urls: [ '' ], root: config.assets_root )
end
def call(env)
- if base_path?(env)
+ if base_path?(env)
redirect_uri = env['SCRIPT_NAME'].chomp('/') + '/index.html'
return [ 301, { 'Location' => redirect_uri }, [ ] ]
end
if index_path?(env)