Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Set AlternativeTo API response to js content type
Browse files Browse the repository at this point in the history
Fixes mim type warnings from browesrs
  • Loading branch information
moollaza committed Jun 8, 2018
1 parent 3dfdfaf commit 5789826
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/DDG/Spice/AlternativeTo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ triggers any => "alternative","alternatives","alternativeto";

spice from => '([^/]+)/(.*?)/([^/]*)';
spice to => 'http://api.alternativeto.net/software/$1/?platform=$2&license=$3&count=12&callback={{callback}}&key={{ENV{DDG_SPICE_ALTERNATIVETO_APIKEY}}}';
spice content_type_javascript => 1;

my %alternatives = (
'google' => 'googlecom',
Expand Down

0 comments on commit 5789826

Please sign in to comment.