Skip to content

Commit

Permalink
fix: https for DDG, provide range for UserProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
aviraldg committed Jul 4, 2016
1 parent 22a2593 commit ed305bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/autocomplete/DuckDuckGoProvider.js
Expand Up @@ -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)}`;
}

Expand Down
1 change: 1 addition & 0 deletions src/autocomplete/UserProvider.js
Expand Up @@ -32,6 +32,7 @@ export default class UserProvider extends AutocompleteProvider {
title={user.displayName || user.userId}
description={user.userId} />
),
range
};
}).slice(0, 4);
}
Expand Down

0 comments on commit ed305bd

Please sign in to comment.