We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f31c307 commit ae53123Copy full SHA for ae53123
2 files changed
app/controllers/feeds_controller.rb
@@ -48,7 +48,7 @@ class Stringer < Sinatra::Base
48
end
49
50
get "/feeds/export" do
51
- content_type 'application/octet-stream'
+ content_type 'application/xml'
52
attachment 'stringer.opml'
53
54
ExportToOpml.new(Feed.all).to_xml
spec/controllers/feeds_controller_spec.rb
@@ -121,7 +121,7 @@
121
get "/feeds/export"
122
123
last_response.body.should eq some_xml
124
- last_response.header["Content-Type"].should include 'application/octet-stream'
+ last_response.header["Content-Type"].should include 'application/xml'
125
last_response.header["Content-Disposition"].should == "attachment; filename=\"stringer.opml\""
126
127
0 commit comments