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

Commit

Permalink
Update BrainyQuote API call to HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
moollaza committed Nov 22, 2016
1 parent 92d7bdd commit ca680b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/DDG/Spice/BrainyQuote.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use DDG::Spice;

triggers startend => 'quote', 'quotes', 'quotation', 'quotations';

spice to => 'http://www.brainyquote.com/api/ddg?q=$1';
spice to => 'https://www.brainyquote.com/api/ddg?q=$1';
spice wrap_jsonp_callback => 1;

handle remainder => sub {
Expand All @@ -15,9 +15,9 @@ handle remainder => sub {
if(/^\w\.\w/) {
s/\./\. /g;
}

# Avoid triggering on 'stock' quotes; these are handled by Stocks IA

if ($req->query_lc =~ m/stock quote/) {
return;
}
Expand All @@ -27,7 +27,7 @@ handle remainder => sub {
return;
}
}


return $_ if $_;
return;
Expand Down

0 comments on commit ca680b6

Please sign in to comment.