aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNerdyPepper <[email protected]>2018-07-06 15:52:45 +0100
committerNerdyPepper <[email protected]>2018-07-06 15:52:45 +0100
commitc86eb64d34fb185215bb8924e52f5e4af08ba2aa (patch)
tree7a8acfb8cfda6016ba30381bdc12c3a6a8d0806d /src
parentf60923353044467d654644018612836a06e4b4f0 (diff)
Enable redirects
Diffstat (limited to 'src')
-rw-r--r--src/content.rs3
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;
3extern crate cursive; 3extern crate cursive;
4extern crate regex; 4extern crate regex;
5 5
6use cursive::theme::{ BaseColor, Color, Effect, Style }; 6use cursive::theme::Effect;
7use cursive::utils::markup::StyledString; 7use cursive::utils::markup::StyledString;
8use cursive::Cursive; 8use cursive::Cursive;
9use cursive::views::Dialog; 9use 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}