Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c825124b
Commit
c825124b
authored
Dec 06, 2021
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated HTTP 1.1 header and session destroy
parent
450bcb19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app/controllers/application_controller.rb
app/controllers/application_controller.rb
+1
-3
app/controllers/sessions_controller.rb
app/controllers/sessions_controller.rb
+1
-1
No files found.
app/controllers/application_controller.rb
View file @
c825124b
...
@@ -279,9 +279,7 @@ class ApplicationController < ActionController::Base
...
@@ -279,9 +279,7 @@ class ApplicationController < ActionController::Base
end
end
def
default_cache_headers
def
default_cache_headers
if
current_user
headers
[
'Pragma'
]
=
'no-cache'
# HTTP 1.0 compatibility
headers
[
'Pragma'
]
=
'no-cache'
# HTTP 1.0 compatibility
end
end
end
def
stream_csv_headers
(
csv_filename
)
def
stream_csv_headers
(
csv_filename
)
...
...
app/controllers/sessions_controller.rb
View file @
c825124b
...
@@ -84,7 +84,7 @@ class SessionsController < Devise::SessionsController
...
@@ -84,7 +84,7 @@ class SessionsController < Devise::SessionsController
end
end
def
destroy
def
destroy
headers
[
'Clear-Site-Data'
]
=
'"
cache
"'
headers
[
'Clear-Site-Data'
]
=
'"
*
"'
Gitlab
::
AppLogger
.
info
(
"User Logout: username=
#{
current_user
.
username
}
ip=
#{
request
.
remote_ip
}
"
)
Gitlab
::
AppLogger
.
info
(
"User Logout: username=
#{
current_user
.
username
}
ip=
#{
request
.
remote_ip
}
"
)
super
super
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment