Commit 4b0988aa authored by Francisco Javier López's avatar Francisco Javier López Committed by Douwe Maan

Remove content disposition attachment displaying all ssh keys

parent aa7c927e
...@@ -40,7 +40,6 @@ class Profiles::KeysController < Profiles::ApplicationController ...@@ -40,7 +40,6 @@ class Profiles::KeysController < Profiles::ApplicationController
begin begin
user = UserFinder.new(params[:username]).find_by_username user = UserFinder.new(params[:username]).find_by_username
if user.present? if user.present?
headers['Content-Disposition'] = 'attachment'
render plain: user.all_ssh_keys.join("\n") render plain: user.all_ssh_keys.join("\n")
else else
return render_404 return render_404
......
...@@ -65,12 +65,6 @@ describe Profiles::KeysController do ...@@ -65,12 +65,6 @@ describe Profiles::KeysController do
expect(response.content_type).to eq("text/plain") expect(response.content_type).to eq("text/plain")
end 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 end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment