class HTMLPipeline::NodeFilter::HttpsFilter
HTML Filter
for replacing http references to :http_url with https versions. Subdomain references are not rewritten.
Context options:
:http_url - The HTTP url to force HTTPS. Falls back to :base_url
Constants
- SELECTOR
Public Instance Methods
handle_element(element)
click to toggle source
# File lib/html_pipeline/node_filter/https_filter.rb, line 17 def handle_element(element) element["href"] = element["href"].sub(/^http:/, "https:") end
selector()
click to toggle source
# File lib/html_pipeline/node_filter/https_filter.rb, line 13 def selector SELECTOR end