Skip to content

Commit 29342a7

Browse files
committed
.
Signed-off-by: Gil Desmarais <[email protected]>
1 parent 0978a85 commit 29342a7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

routes/auto_source.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class App
2020
end
2121

2222
r.on String, method: :get do |encoded_url|
23-
strategy = request.params['strategy'].to_sym || :ssrf_filter
23+
strategy = (request.params['strategy'] || :ssrf_filter).to_sym
2424
unless Html2rss::RequestService.strategy_registered?(strategy)
2525
raise Html2rss::RequestService::UnknownStrategy
2626
end

spec/routes/auto_source_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ def app = described_class
7575
end
7676

7777
it 'responds successfully', :aggregate_failures do
78+
puts '*' * 80
79+
puts response.body
80+
puts '*' * 80
7881
expect(response).to be_ok
7982
expect(response.body).to start_with '<?xml version="1.0" encoding="UTF-8"?>'
8083
expect(response.get_header('cache-control')).to eq 'must-revalidate, private, max-age=0'

0 commit comments

Comments
 (0)