lib/arxiv/models/manuscript.rb in arxiv-0.1.4 vs lib/arxiv/models/manuscript.rb in arxiv-0.1.5
- old
+ new
@@ -49,9 +49,10 @@
end
def pdf_url
if available_in_pdf?
url = links.find { |l| l.content_type == "application/pdf" }.url
+ url = StringScrubber.force_ssl_url(url)
"#{url}.pdf" unless url =~ /\.pdf$/
end
end
end