Remove content disposition attachment displaying all ssh keys
This commit is contained in:
parent
aa7c927e1e
commit
4b0988aa02
2 changed files with 0 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue