Permalink
Browse files

fix: https for DDG, provide range for UserProvider

  • Loading branch information...
aviraldg committed Jul 4, 2016
1 parent 22a2593 commit ed305bd547b3bd9d2ffb04a44d12f2d0f3a55c29
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/autocomplete/DuckDuckGoProvider.js
  2. +1 −0 src/autocomplete/UserProvider.js
@@ -16,7 +16,7 @@ export default class DuckDuckGoProvider extends AutocompleteProvider {
}
static getQueryUri(query: String) {
return `http://api.duckduckgo.com/?q=${encodeURIComponent(query)}`
return `https://api.duckduckgo.com/?q=${encodeURIComponent(query)}`
+ `&format=json&no_redirect=1&no_html=1&t=${encodeURIComponent(REFERRER)}`;
}
@@ -32,6 +32,7 @@ export default class UserProvider extends AutocompleteProvider {
title={user.displayName || user.userId}
description={user.userId} />
),
range
};
}).slice(0, 4);
}

0 comments on commit ed305bd

Please sign in to comment.