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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
4b0988aa
Commit
4b0988aa
authored
6 years ago
by
Francisco Javier López
Committed by
Douwe Maan
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove content disposition attachment displaying all ssh keys
parent
aa7c927e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
app/controllers/profiles/keys_controller.rb
app/controllers/profiles/keys_controller.rb
+0
-1
spec/controllers/profiles/keys_controller_spec.rb
spec/controllers/profiles/keys_controller_spec.rb
+0
-6
No files found.
app/controllers/profiles/keys_controller.rb
View file @
4b0988aa
...
...
@@ -40,7 +40,6 @@ class Profiles::KeysController < Profiles::ApplicationController
begin
user
=
UserFinder
.
new
(
params
[
:username
]).
find_by_username
if
user
.
present?
headers
[
'Content-Disposition'
]
=
'attachment'
render
plain:
user
.
all_ssh_keys
.
join
(
"
\n
"
)
else
return
render_404
...
...
This diff is collapsed.
Click to expand it.
spec/controllers/profiles/keys_controller_spec.rb
View file @
4b0988aa
...
...
@@ -65,12 +65,6 @@ describe Profiles::KeysController do
expect
(
response
.
content_type
).
to
eq
(
"text/plain"
)
end
it
"responds with attachment content disposition"
do
get
:get_keys
,
username:
user
.
username
expect
(
response
.
headers
[
'Content-Disposition'
]).
to
eq
(
'attachment'
)
end
end
end
end
This diff is collapsed.
Click to expand it.
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