diff options
author | NerdyPepper <[email protected]> | 2018-07-06 15:52:45 +0100 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2018-07-06 15:52:45 +0100 |
commit | c86eb64d34fb185215bb8924e52f5e4af08ba2aa (patch) | |
tree | 7a8acfb8cfda6016ba30381bdc12c3a6a8d0806d | |
parent | f60923353044467d654644018612836a06e4b4f0 (diff) |
Enable redirects
-rw-r--r-- | src/content.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content.rs b/src/content.rs index 6492431..4c71fd0 100644 --- a/src/content.rs +++ b/src/content.rs | |||
@@ -3,7 +3,7 @@ extern crate serde_json; | |||
3 | extern crate cursive; | 3 | extern crate cursive; |
4 | extern crate regex; | 4 | extern crate regex; |
5 | 5 | ||
6 | use cursive::theme::{ BaseColor, Color, Effect, Style }; | 6 | use cursive::theme::Effect; |
7 | use cursive::utils::markup::StyledString; | 7 | use cursive::utils::markup::StyledString; |
8 | use cursive::Cursive; | 8 | use cursive::Cursive; |
9 | use cursive::views::Dialog; | 9 | use cursive::views::Dialog; |
@@ -22,6 +22,7 @@ pub fn query_url_gen(title: &str) -> String { | |||
22 | url.push_str("titles="); | 22 | url.push_str("titles="); |
23 | url.push_str(title); | 23 | url.push_str(title); |
24 | url.push_str("&"); | 24 | url.push_str("&"); |
25 | url.push_str("redirects=1&"); | ||
25 | url.push_str("explaintext=1"); | 26 | url.push_str("explaintext=1"); |
26 | url | 27 | url |
27 | } | 28 | } |