Remove content disposition attachment displaying all ssh keys

This commit is contained in:
Francisco Javier López 2018-12-18 14:24:22 +00:00 committed by Douwe Maan
parent aa7c927e1e
commit 4b0988aa02
2 changed files with 0 additions and 7 deletions

View File

@ -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

View File

@ -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