fix: allow storing location for head requests
- Update store_location method to handle HEAD requests - Ensure session forwarding URL is set for both GET and HEAD requests This change enhances the session management by allowing the application to store the original URL for HEAD requests, which is useful for certain types of HTTP interactions.
This commit is contained in:
parent
07d3c45f67
commit
5ff05c3dc4
@ -47,6 +47,7 @@ module SessionsHelper
|
||||
end
|
||||
|
||||
def store_location
|
||||
session[:forwarding_url] = request.original_url if request.get?
|
||||
session[:forwarding_url] = request.original_url if
|
||||
request.get? || request.head?
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user