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
Source
# File lib/html_pipeline/node_filter/https_filter.rb, line 17 def handle_element(element) element["href"] = element["href"].sub(/^http:/, "https:") end
Source
# File lib/html_pipeline/node_filter/https_filter.rb, line 13 def selector SELECTOR end