Skip to content

Commit

Permalink
Add X-Web-Console-Mount-Point
Browse files Browse the repository at this point in the history
It returns the mount point of the Middleware.
  • Loading branch information
sh19910711 committed Aug 17, 2015
1 parent b8b60ee commit 703825e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/web_console/middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def call(env)
template = Template.new(env, session)

response.headers["X-Web-Console-Session-Id"] = session.id
response.headers["X-Web-Console-Mount-Point"] = mount_point
response.write(template.render('index'))
response.finish
else
Expand Down

0 comments on commit 703825e

Please sign in to comment.