use https where specified

google-oauth
eric 2019-04-21 15:16:25 -04:00
parent a42faaac92
commit 0162735f32
6 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@ import BaseSearcher
# https://developers.google.com/recaptcha/docs/verify # https://developers.google.com/recaptcha/docs/verify
# #
API = "http://www.google.com/recaptcha/api/verify" API = "https://www.google.com/recaptcha/api/verify"
class QuestionPage (Page.Page): class QuestionPage (Page.Page):

View File

@ -299,5 +299,5 @@ class EbookMetaData (object):
""" Return the url of the ebook file on gutenberg.org. """ """ Return the url of the ebook file on gutenberg.org. """
return urllib.parse.urljoin ( return urllib.parse.urljoin (
'http://' + cherrypy.config['file_host'], 'https://' + cherrypy.config['file_host'],
'ebooks/%d.%s' % (self.id, self.filetype)) 'ebooks/%d.%s' % (self.id, self.filetype))

View File

@ -355,7 +355,7 @@ Gutenberg metadata much faster than by scraping.
<td><span class="icon icon_folder" /></td> <td><span class="icon icon_folder" /></td>
<td class="unpadded icon_file"><a href="${e.base_dir}" class="link" <td class="unpadded icon_file"><a href="${e.base_dir}" class="link"
i18n:comment="Link to the directory containing all files.">More Files…</a></td> i18n:comment="Link to the directory containing all files.">More Files…</a></td>
<td class="noscreen">http:${os.qualify (e.base_dir)}</td> <td class="noscreen">https:${os.qualify (e.base_dir)}</td>
<td/> <td/>
<td class="noprint"><!--! dropbox column --></td> <td class="noprint"><!--! dropbox column --></td>
<td class="noprint"><!--! gdrive column --></td> <td class="noprint"><!--! gdrive column --></td>

View File

@ -6,7 +6,7 @@ DON'T USE THIS PAGE FOR SCRAPING.
Seriously. You'll only get your IP blocked. Seriously. You'll only get your IP blocked.
Download http://www.gutenberg.org/feeds/catalog.rdf.bz2 instead, Download https://www.gutenberg.org/feeds/catalog.rdf.bz2 instead,
which contains *all* Project Gutenberg metadata in one RDF/XML file. which contains *all* Project Gutenberg metadata in one RDF/XML file.
--> -->

View File

@ -6,7 +6,7 @@ DON'T USE THIS PAGE FOR SCRAPING.
Seriously. You'll only get your IP blocked. Seriously. You'll only get your IP blocked.
Download http://www.gutenberg.org/feeds/catalog.rdf.bz2 instead, Download https://www.gutenberg.org/feeds/catalog.rdf.bz2 instead,
which contains *all* Project Gutenberg metadata in one RDF/XML file. which contains *all* Project Gutenberg metadata in one RDF/XML file.
--> -->

View File

@ -6,7 +6,7 @@ DON'T USE THIS PAGE FOR SCRAPING.
Seriously. You'll only get your IP blocked. Seriously. You'll only get your IP blocked.
Download http://www.gutenberg.org/feeds/catalog.rdf.bz2 instead, Download https://www.gutenberg.org/feeds/catalog.rdf.bz2 instead,
which contains *all* Project Gutenberg metadata in one RDF/XML file. which contains *all* Project Gutenberg metadata in one RDF/XML file.
--> -->
@ -47,7 +47,7 @@ which contains *all* Project Gutenberg metadata in one RDF/XML file.
<subtitle>Free ebooks since 1971.</subtitle> <subtitle>Free ebooks since 1971.</subtitle>
<author> <author>
<name>Marcello Perathoner</name> <name>Marcello Perathoner</name>
<uri>http://www.gutenberg.org</uri> <uri>https://www.gutenberg.org</uri>
<email>webmaster@gutenberg.org</email> <email>webmaster@gutenberg.org</email>
</author> </author>
<icon>${os.qualify ('/pics/favicon.png')}</icon> <icon>${os.qualify ('/pics/favicon.png')}</icon>