summaryrefslogtreecommitdiffstats
path: root/src/helpers.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers.cr')
-rw-r--r--src/helpers.cr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index 16e50ccd..bedaa132 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -457,7 +457,8 @@ def fill_links(html, scheme, host)
html.xpath_nodes("//a").each do |match|
url = URI.parse(match["href"])
- if !url.host # If reddit link
+ # Reddit links don't have host
+ if !url.host
url.scheme = scheme
url.host = host
match["href"] = url
@@ -480,7 +481,6 @@ def login_req(login_form, f_req)
}
data = data.merge(login_form)
- # pp data
return HTTP::Params.encode(data)
end